How do i create a download link of an object in my object storage?
When i click on a link to my object it opens the default video window and it starts playing it, instead i want the download process to start after you click on the link
here's my link: https://ubongo-storage.us-east-1.linodeobjects.com/Letter-a.mp4
4 Replies
@SBoustred The best way to download a file located in your Object Storage bucket is to right-click or CTL+click on the link itself. This will automatically start the download process while clicking on the link will start video playback.
If I understand correctly, you were expecting the link to take the user to separate page which would allow them to download the file. We don't currently offer this feature, but I totally understand how useful this can be. So, I will make sure to include this feature request in our internal tracker.
Hope this helps!
Actually, @rdaniels, Linode does support this. :)
There are a couple of ways of accomplishing this, but it seems the best way would be the following:
What you need to do is update the metadata for the file in object storage that you've uploaded, so it forces a download in the header information sent.
Using Cyberduck as an example, you would select the object storage file in the Cyberduck browser, select 'info' from the menu (or right click), and then click on the Metadata tab. You would then click on the settings icon and select "Content-Disposition". It will add that to the list of headers. Then enter "attachment" for the value. Now when the file is served it will force a download.
If you're using signed URLs, you can also add the headers when you create the URL but it doesn't sound like you need to do that.
hey @fxphdadmin thanks for your solution it seems plausible, but how do i connect using cyberduck? I couldn't find support for linode i only found Amazon s3, using https://ubongo-storage.us-east-1.linodeobjects.com as server url but couldn't connect
@fxphdadmin hahaha! i just went through the official docs about cyberduck and it worked, thanks much!