Open patientplatypus opened 5 years ago
I'm not sure your tone is adequate here... There is indeed a mistake, thanks for pointing it out, you could submit a PR to fix it now that you found the issue.
Python is easy to access as a language but imho you should try to dig a bit more into the fundamentals before copy/pasting code.
Note that args could also be related to flask.request.args (even if using Flask restplus is the right way to do it in this case).
This code (https://flask-restplus.readthedocs.io/en/stable/parsing.html#file-upload):
Doesn't compile. Maybe you need something like this
args = upload_parser.parse_args('file')
, but args is clearly not defined.I've wasted too much time on this for me to consider using your library and it's obnoxious that you have code examples that don't work. Fix this.