Join the Webstudio community

Updated 6 months ago

I cannot upload attachments

At a glance

The community member is trying to add a PDF as a downloadable resource on Webstudio, but is facing issues as PDFs are greyed out in the file manager and dragging to the asset upload does not work. The community members discuss that the attachment link type should allow uploading PDFs, but it only accepts image types. They also mention that Webstudio currently does not support hosting these types of assets, and the community member would need to host the PDF elsewhere and link to it. However, the community members indicate that Webstudio is considering allowing hosting of small files, including PDFs, in the future. In the meantime, the community members suggest using a link to any URL and adding the "download" attribute to make the file downloadable.

Useful resources
I need to add a PDF as a downloadable resource, and from the documentation, I should be able to do this using the attachment link type.

However, it doesn’t work despite my best efforts. PDFs are greyed out in my file manager and dragging to the asset upload does nothing.

Am I missing something?
1
O
K
M
17 comments
which documentation are you referring to?
I get your problem, you add a link type attachement and it should let you upload the resource to download but it only accept img types, so you can not upload a PDF. I think on webstudio we can upload images only (I can be wrong )
You can link a file and make it downloadable, but you have to host it somewhere else, e.g. dropbox/googledrive etc. We currently don't support these type of assets
I think he was confused by the Upload button, maybe it should be removed and a text field for URL source should be added.
Figured out the reason, somehow we lost the input field there, which allows you to link an external resource and we automatically would make it downloadable
Attachment
image.png
Thanks folks. But, just to confirm, is it possible to host PDFs on Webstudio?
right now, no, but we are discussing to allow hosting small files, under 4.5mb of different types, including pdfs, stay tuned
That would be awesome. It would solve the hassle of having to put this on another platform.
Discussed internally, we found a solution that would work, so yes, this is coming.
Right now you can use a link to any url and add an attribute download, so it will download when user clicks.
I am also making that attribute download by default visible now, but you can already use it by adding it yourself.
Is there a github ticket to follow for this?
Add a reply
Sign up and join the conversation on Discord