Jump to content

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.