Link to home
Start Free TrialLog in
Avatar of Mike R.
Mike R.

asked on

Alteration to allow Django API to receive PDF file instead of JPG

I'm a Python developer but not a Django developer. I'm trying to get a feel for how, and how difficult, it would be to change the attached code from accepting JPGs files via the API to accepting PDF files.

Currently it errors when accepting PDFs...but works great with JPGs.

Please see the code snippets below.

Thanks!

admin.py

models.py

serializers.py

urls.py

views.py

apihandler.py
Avatar of Walter Ritzel
Walter Ritzel
Flag of Brazil image

Can you show the errors that you are receiving when trying to upload a PDF?
Avatar of Mike R.
Mike R.

ASKER

I cant show the errors anymore unfortunately :)

But this is less of a 'give me code to fix it' and more of a PM question. I'm looking for how many hours I should expect for a  devel to make this change...if that makes sense :)
ASKER CERTIFIED SOLUTION
Avatar of Walter Ritzel
Walter Ritzel
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike R.

ASKER

awesome! thanks!