?
Solved

form upload - select image from server

Posted on 2011-02-11
9
Medium Priority
?
339 Views
Last Modified: 2012-06-21
Hello All,

I have a form with a working upload file field. The operation is typical. The user selects a file from their pc and uploads.

I'd like to add a feature where the user has the option to select a file located in a directory on my server.

Let's say the directory is http://mySite.com/images. There are several images in this directory. I'd like to give the user the option to open this directory and select an image. The user still needs  to have the option to select a file from thier pc.

I hope someone can help.

Many thanks.
0
Comment
Question by:Champ007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 4

Expert Comment

by:IceCode
ID: 34874179
You will need to build a custom file browser or download an open-source app.  You can't browse to the server's file system through the file browser that pops up from an HTML file input field.
0
 

Author Comment

by:Champ007
ID: 34874302
Any suggestions for open source apps?
0
 
LVL 4

Expert Comment

by:IceCode
ID: 34874392
Actually I think you are really going to be better off writing it yourself.  Most open-source apps are full blown file management systems and will be far larger programs than you need and will be far more complex than needed.  Consider it a good learning opportunity and write it, in my opinion.  Everything you need to do like listing a dir, copying files, moving files, deleting files, etc. is fairly easy to do and sample code for these things is very accessible via Google.  I can tell you this with confidence because I've done this before.

You can find some good open-source stuff for this here: http://www.webresourcesdepot.com/category/goodies/file-folder/

I warn you though, that as pretty as some of these may appear, an installation and customization to fit your needs may take more effort than starting from scratch.  Good luck to you, I wish there was more I could do.
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 

Author Comment

by:Champ007
ID: 34874532
Are there any code helpers out there? Or links to a do-it-yourself solution (I've Googled to no avail - that's why I came here). IceCode has suggested that I not use an open-source app.
0
 
LVL 4

Accepted Solution

by:
IceCode earned 1500 total points
ID: 34874744
I think I found something that may work for you, it's jQuery though.

http://code.google.com/p/jq-serverbrowse/

Personally, I love jQuery.
0
 

Author Comment

by:Champ007
ID: 34880032
Sorry IceCode. This does not get me there. It's not your fault. It is just way above my head. Thanks anyway....Still looking for a solution...
0
 
LVL 4

Expert Comment

by:IceCode
ID: 34880571
Sorry but I don't think you are going to do much better without hiring a programmer.  :(

Good luck to you my friend.
0
 

Author Comment

by:Champ007
ID: 34880817
Perhaps you are right. I will award points even without my issue resolved. I'm forced to move in a different direction on this.
0
 

Author Closing Comment

by:Champ007
ID: 34880824
I don't know if the answer was complete or not. I could not get my (limited) skills to make it work.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question