Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: RE : long file names & virtual folders


Message #1 by "Pierre" <pierre.mathieu@s...> on Tue, 21 Aug 2001 19:20:39 -0700
Hi,



You can try this function



string.urlEncode



Exemple:

string.urlEncode ("This is a string with some illegal characters: / $ &

%")



  return

"This%20is%20a%20string%20with%20some%20illegal%20characters%3A%20%2F%20

%24%20%26%20%25"





-----Message d'origine-----

De=A0: Cam T [mailto:camtlist1@m...]

Envoy=E9=A0: Monday, August 20, 2001 4:54 PM

=C0=A0: ASP Databases

Objet=A0: [asp_databases] long file names & virtual folders



I built a little site for storing documents on a website.  Each record

has

a filename, size, date, a description (manullay entered upon upload).



Everything works fine except the following:

1. I need to be able to replace spaces and/or invalid characters in

filenames.  Currently a long filename doesn't work as the link would

look

like this: /files/path/file name.txt

I need to display: /files/path/file%20name.txt



2. Uploading files from a virtual folder (Desktop, My Documents) doesn't



work.  I am using a free script called ASPSmartUpload, just curious if

anyone knows how to get around this, if possible (not sure if its the

ASPSmartUpload or something else).






  Return to Index