1

I have a live site and I want that if the user press the button Select Folder it will prompt user a dialog and search in his local directory what folder he wants. How can I possibly achieve this?

Similar to this but this is a file, I want a folder

   <form id="myForm" class="form-inline" enctype="multipart/form-data" action="wp-content/themes/twentyelevenchild/generate.php?file_name=<?php echo $_GET['file_name']; ?>" method="post">
    <input type="hidden" class="csv_file" name="MAX_FILE_SIZE" value="100000">
    <input name="csv_file" type="file">
    <input type="button" class="btn btnGenerateCsv" value="Generate">

</form>

1 Answer 1

2

Can't be done in pure HTML/JavaScript for security reasons.

EDIT

You should be looking to this for alternatives

http://www.swfupload.org

http://www.uploadify.org

Sign up to request clarification or add additional context in comments.

1 Comment

i see , thanks ! i thought there is similar to file upload. :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.