Download PDF Uploaded with Django App
I have an app to upload files (PDF etc).
Files are uploading normally, but when I open the link from my django template using the code below, I want it to be downloaded.
Model:
file = CloudinaryField(resource_type="auto", null=True, blank=False)
Form:
class TicketCreateForm(forms.ModelForm):
file = CloudinaryFileField(required=False,)
class Meta:
model = Ticket
fields = ['title', 'description', 'file']
Template:
<a href="{{ ticket.file.url %}">{{ticket.file}}</a>
right now, when I click the link, it opens a blank page.
I have read about the flags parameter, but I dont know where to include it in my code.
-
Hi Kazeem,
This is expected if you are on our Free plan as you can see here.
Would you mind following the steps in the article above and contact us with the details asked during the request?
Thanks,
Loic
Please sign in to leave a comment.
Comments
1 comment