Locating file path from a <InMemoryUploadedFile> Djnago object

Posted by PirosB3 on Stack Overflow See other posts from Stack Overflow or by PirosB3
Published on 2010-05-02T11:46:48Z Indexed on 2010/05/02 11:57 UTC
Read the original article Hit count: 296

Hi all

I have a Django app which, submitting a package, should return values that are inside it.. Submitted the form to a view called "insert":

request.FILES['file']

returns the file objects, but it is of kind < InMemoryUploadedFile>. What i need is a way to get the absolute path of the uploaded file, so that i can feed it to a method that will return the values needed

Anyone know how i can accomplish this?

Thanks

© Stack Overflow or respective owner

Related posts about django

Related posts about django-views