Jump to content

User select a directory?


sammermpc

Recommended Posts

I feel like this should be simple, but I don't know how to do it.  I am creating a web database that  will have many files contained within large directories that need to be processed.  I wrote a PHP parser, processor, ect, that handles this no problem.  Now, all I want is for the user to be allowed to SELECT a directory.  Like the html [browse...] button, but allowing the user to select a directory.  Any ideas?
Link to comment
https://forums.phpfreaks.com/topic/14224-user-select-a-directory/
Share on other sites

I have to go through all that just to get such simple functionality?  I mean, I could practically just have them select a file within a folder, and then chop off the file name.  Incredibly clumsy (and unacceptable for this application), but it would work.  In any case, the AJAX implementation would depend on sending the right HTTP headers correct?  In that case--what are they?
well my naive suggestion would be a select box which you populate with all the directories available.  are you asking how to get all the directories available, or do you already have those stored in a database?  i'm not too clear on what information you've already got to work with.
No, I am entering information into a database.  This is the problem at hand.  A lab group goes out in the field with various instruments--they return a week later with literally hundreds of files from said instruments.  They then upload these from their laptops to a central server, which processes them, and stores data (time, date, location, ect...), in a database.

The question is, how can I let them simply select their data folders (ie../marine/data/07122006/), and then let the scripts do their work.  I have already written the batch processing, and it works if they type in the path by hand.  I want them to able to simply use a browse dialogue box, similar to the one <input type="file"..../> uses.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.