File browser

  • Thread starter Thread starter JJ
  • Start date Start date
J

JJ

I'm looking for an asp .net 2.0 implementation of a file browser/uploader.

I just want to allow the user to browse for an image to upload, OR browse
their image directory on the web server for one they have previously
uploaded to the server.

This must be something many people want to do, but I can't for the life of
me find any example code or open source implementation of this
functionality.

JJ
 
System.IO will get you everything you need to browse files on a webserver -
just give it the path you want to look at.
The FileUpload control will browse locally for a file to upload
 
I just want to allow the user to browse for an image to upload, OR browse
their image directory on the web server for one they have previously
uploaded to the server.

It's important to understand that whereas these two things may look the same
to the user (maybe even to you!), they are actually very different in
ASP.NET terms because one is browsing the client's hard disk and the other
is browsing the server's hard disk.

Prompting the user for a local file to upload is fairly straightforward...
http://www.google.co.uk/search?sour...rls=GGLG,GGLG:2006-28,GGLG:en&q=htmlinputfile

Presenting the user with the contents of a server-side folder is a little
different because you can't use any of the GUI dialogs - they'd try to open
on the server itself anyway.

I would probably use the System.IO namespace, open a Directory object and
then display its files maybe in a scrolling listbox...
http://www.google.co.uk/search?hl=en&rls=GGLG,GGLG:2006-28,GGLG:en&q=ASP.NET+GetFiles&meta=
 
Thanks for that. However, I'm seem to be trying to repeat the functionality
of the Image Browser within FCKEditor (which I am using in other parts of
the site).

Does anyone know if its possible to use this portion of FCKeditor without
the text editing part?

JJ
 
Back
Top