angular-filemanager icon indicating copy to clipboard operation
angular-filemanager copied to clipboard

"Invalid Path" error when uploading files to filemanager.py

Open iamwhitebox opened this issue 7 years ago • 1 comments

Using python tornado server, files are listing correctly - but uploading returns an "Invalid Path" error, I can't figure it out. Anyone else seen this?

screen shot 2017-10-13 at 9 32 37 am

iamwhitebox avatar Oct 13 '17 16:10 iamwhitebox

I got the same problem (in Python 2.7+). The issue is that "/src/js/enties" should not start with a slash because os.path.join() acts weird when there is one part starting with a slash. For fix it, into the function upload(), I added:

destination = handler.get_body_argument('destination', default='/')[1:]

I created a pull request for that #340.

Cooya avatar Mar 15 '18 12:03 Cooya