Closed kiranlm closed 4 years ago
gpxpy.parse(gpxFile)
accepts a file-like object or a string. In this case it probably isn't a valid file-like object or it's not a string. Log the type and contents of gpxFile
to see what's in there.
Anyway, I'm closing this since this isn't an "issue" (it's a question - stackoverflow is a better places for asking questions).
I have tried to read file from request instead of physical path
This one give me some error like:
Below one is working fine when I tried reading from local file:
How can I parse the file from request
I'm posting as FormData like this:![image](https://user-images.githubusercontent.com/5306693/84191847-bd9a5780-aab6-11ea-863b-eeb18b3a62ca.png)