1

My django app accepts two files (in this case a jad and jar combo). Is there a way I can preserve the folders they came from?

I need this so I can check later that they came from the same path.

(And later on accept a whole load of files and be able to work out which came from the same folder).

Stuart Axon
  • 1,844
  • 1
  • 26
  • 44

1 Answers1

2

I think that is not possible, most browsers at least firefox3.0 do not allow fullpath to be seen, so even from JavaScript side you can not get full path If you could get full path you can send it to server, but I think you will have to be satisfied with file name

Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
  • Ah - as can be seen in this answer to a related question: http://stackoverflow.com/questions/81180/how-to-get-the-file-path-from-html-input-form-in-firefox-3 Thats pretty annoying as I need to group these by directory. I'm probably going to use postlet for some uploading, so might use it to solve this problem too. – Stuart Axon Jun 11 '09 at 16:46