coldfusion - Opening file from server with ColdFustion -


I have a piece of code that runs in the form of a loop and receives all the filenames that an application Have been uploaded in

& lt; CFOUTPUT QUERY = "findfiles" & gt; & Lt; A HREF = "# file_destination ## filename #" & gt; #title # & lt; / A & gt; & Lt; / CFOUTPUT & gt;

Make sure that the real problem is, but an error occurs when the user clicks on the link, "Phalkfof does not know how to open this address, because one of the following protocols (D) is not affiliated with any program or is not allowed in this context. "URL is an example: file: /// d: / DOCS / UPLOADS / apps / 1234_Afxg2013% 20Application% 20rev1.doc

I am trying to drag files from the server. Some of these file names also include spaces that can cause problems ?? These files are stored on any other server, so I can not do ... / files anymore.

When you have a URL using "file: ///", if that browser also Allows the client to see the machine.

Your post does not have enough information, but in the end you need a URL that looks like this: "".

I also suggest that you do some research on keeping your web server safe. User uploaded files should not be stored in the web root and should use Handler to retrieve them. But this is a complete notator topic and it is not required.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -