JonJonJon Posted November 11, 2021 Share Posted November 11, 2021 I would like an image download to start in the background when a button is clicked, as is the norm. Instead squarespace opens a page, requiring an additional right-click step. I can't seem to find how to prevent this. When using a link, you have the option of page, file, etc. so I don't understand why when choosing a file, it opens a page regardless. I am using a code block, but this seems to be the case whatever method i use, such as buttons, forms etc. my current html code is: <a href="/s/DM042_Wallpaper_Phone.jpg" download="jonpxl_wallpaper_DM042_phone" target="_blank" class="button">WALLPAPER</a> Beyondspace 1 Link to comment
Beyondspace Posted November 11, 2021 Share Posted November 11, 2021 2 hours ago, JonJonJon said: I would like an image download to start in the background when a button is clicked, as is the norm. Instead squarespace opens a page, requiring an additional right-click step. I can't seem to find how to prevent this. When using a link, you have the option of page, file, etc. so I don't understand why when choosing a file, it opens a page regardless. I am using a code block, but this seems to be the case whatever method i use, such as buttons, forms etc. my current html code is: <a href="/s/DM042_Wallpaper_Phone.jpg" download="jonpxl_wallpaper_DM042_phone" target="_blank" class="button">WALLPAPER</a> You mean to trigger download when button click? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
JonJonJon Posted November 11, 2021 Author Share Posted November 11, 2021 @bangank36 yes, to trigger a download. Unfortunately I can't get my site to do that, whether that's through squarespace tools such as buttons etc, or via html Beyondspace 1 Link to comment
JonJonJon Posted November 18, 2021 Author Share Posted November 18, 2021 Hi @bangank36 I was wondering if you had a spare moment to help me with this hopefully very small issue? thank you. Beyondspace 1 Link to comment
JonJonJon Posted December 2, 2021 Author Share Posted December 2, 2021 Hi, is anyone able to help on this problem? It seems like it would be an easy fix and quite a common question. Beyondspace 1 Link to comment
Liina Posted October 13, 2022 Share Posted October 13, 2022 I have been looking for the exact same thing. Such a bummer that there is no answer for this question. Does anyone know how to trigger the download of an image file instead of it opening on a page? It would be highly appreciated! Beyondspace 1 Link to comment
Backbone Posted April 4 Share Posted April 4 Hey, wondering if anyone has figured this out yet? I'm also trying to achieve it for work. Beyondspace 1 Link to comment
Beyondspace Posted April 4 Share Posted April 4 Usually we can use download attribute to trigger download file from a link, but Squarespace images are stored on their CDN, which has different domain (cross-origin) from user website, therefore the download attribute may not work as intended Chrome deprecations and removals announcement BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
LOCA Posted May 22 Share Posted May 22 Howdy. I am trying the same. I found how to do it with just one file from THIS video but can't do folder. Has anyone here contacted SP directly? Beyondspace 1 Link to comment
Beyondspace Posted May 22 Share Posted May 22 9 minutes ago, LOCA said: Howdy. I am trying the same. I found how to do it with just one file from THIS video but can't do folder. Has anyone here contacted SP directly? Can you compress the folder and upload as zip file? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
LOCA Posted May 22 Share Posted May 22 30 minutes ago, Beyondspace said: Can you compress the folder and upload as zip file? I sure tried but no go. Can you?? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment