New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drag & drop folder : add full path to the file object #285
Comments
related to #238 |
Does your server handle the folder upload? I think this feature very much depends on the server implementation. As for the client only Chrome and recent Opera versions supports drag and drop folders so this feature would not be cross browser. |
my idea is to send for each file the fullpath on the clientside. That info is already there in the items when you do the traverseTree it is just a matter of putting it in the file object. I can deal with the recreation of the folder structure in the serverside with no problems. So the upload could send the match filename -> filepath in the data param or something similar. |
Ok so what you are suggesting is to just send the files not folders but change the name of the files to be the relative path + name of the file. Right? |
Yes or just put in the file object a property called fullpath and let us do the concat if needed. To change the name to the absolute path maybe is not a good idea for other people and would be an incompatible api change I think. |
Ok, I can add an extra field to the file object like |
If I drag FolderX I expect that a.txt has the path /FolderX/FolderY and b.txt has the path /FolderX Don't really know what is the best name for the property though. |
Version 1.6.5 now has |
It is renamed to |
When a folder is dropped it will flatten all the files in the $files array.
It would be good to have the fullpath in each file.
The text was updated successfully, but these errors were encountered: