473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

File browser

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

Oct 9 '06 #1
3 4034
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

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"JJ" <ab*@xyz.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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

Oct 9 '06 #2
"JJ" <ab*@xyz.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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?sourc...=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...GetFiles&meta=
Oct 9 '06 #3
JJ
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

"JJ" <ab*@xyz.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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

Oct 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
3
by: David | last post by:
Should you be able to map a any file extension to the ASP.NET dll and have it execute ASP.NET script, just like an .aspx page, when it is requested by a browser. If not, why bother giving us the...
2
by: Jeff G. | last post by:
Hello everyone, I have read through the newsgroups (thank God for 'em!) extensively looking for an example of how to pass a file (PDF) from a webresponse stream down to a web client. Here's the...
7
by: moondaddy | last post by:
I want to dynamically create a JavaScript file and cache it on the client for re-use. I know how to write javascript to a web page from the code behind, but I don't know how to actually create a...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
6
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
4
by: Peter Larsen | last post by:
Hi, I want to be able to show a file browser embedded on a form - a browser which is similar to the browser you get by SHBrowseForFolder(). Is that possible ? Thank you in advance. BR Peter...
2
by: Lyle Fairfield | last post by:
I am using Microsoft’s Web Browser Control embedded on an Access Form to browse a specific site. I have a good reason for doing so; the pages on this site run code which aborts their display unless...
3
by: pd | last post by:
guys, in my web app, i have a simple download button and a href which points to a file on my server, when the user clicks on the button or the link, the file should simply be downloaded to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.