mike81__ — 2012-02-06T05:04:55-05:00 — #1
I use a http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/ for file uploading.
I wanted to check on the server side whether the uploaded file is an actual file or a directory. I tried the following without success:
This returns text/plain for folders:
This returns false for files and folders (tmp_name is something like /tmp/12Sdfds2 for folders):
What else can I try?
logic_earth — 2012-02-06T05:17:11-05:00 — #2
Maybe I'm missing something...but I never heard of a browser uploading whole directories or directories in general...Firefox doesn't even let me select a directory to upload, it only opens it.
mike81__ — 2012-02-06T05:38:10-05:00 — #3
On my Mac I can drag and drop a folder in FireFox and it gets processed but not the way it should because the script is expecting a file.