Skip to main content

Cloudinary upload (docx, .xls) in the Django admin

Comments

3 comments

  • Nadav Ofir

    Hi,
    The 'resource_type' parameter is defaulted to "image".
    You should define it as either "raw" or "auto" in order to be able to upload non-images files (PDF is can be uploaded as both types).

    1
  • Tecnologia SBTUR

    HI thanks for the reply.

    But I am still having trouble , now no longer throws the exception but the file will not to the server.

    class MyCloudinaryField(CloudinaryField):

    def upload_options(self, model_instance):
        #print model_instance.file
        return {"resource_type": "raw"}
    

    Link file:
    http://res.cloudinary.com/sbtur-com/image/upload/v1430144743/vsuudo0cvl1ojzlflegp.xlsx

    0
  • Nadav Ofir

    Can you share with us your whole Upload code?

    If you don't want to make it public you are welcome to open a support ticket and we'll help you troubleshoot this issue.

    http://support.cloudinary.com/tickets/new

    Nadav

    0

Post is closed for comments.