views:

302

answers:

1

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

+1  A: 

Surely the name "InMemory" is a clue that the file exists in memory only, so doesn't have a path?

Daniel Roseman
isn't there a way i can access the file although it's in memory?
PirosB3
I don't understand your question. You have the file object already.
Daniel Roseman
thanks man!! that worked fine
PirosB3