download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos

How to Raise File Download Dialog Box?

Some time you wish that rather than playing media file shared in a URL, it should be downloaded at local drive first. You can do this by setting the Metadata (called content-disposition) for the object (media file) so that its contents are not displayed. You can set content-disposition header using Bucket Explorer.

New Now Bucket Explorer provides customization to set Content-Disposition metadata. You can add desired extension in tag named "<AttachContentDispositionForExtension>" in BucketExplorer.xml file. The saved extension inside this tag will get this extension automatically set when you upload them.


Steps to set content disposition property:
  1. Run Bucket Explorer as usual and login.
  2. Upload the media player file in your desired bucket.
  3. Update the ACL of this file as Read to All Users .
  4. Then update the Metadata by right clicking on object and select “Update MetaData” option.
  5. Add the following things:
    • In Key --> Content-Disposition
    • In Value --> attachment; filename={$$file_name_without_path_$$}
  6. After that generate web URL by clicking  Web Url icon from object tool bar.
  7. Now URL for that media file is generated, copy it and paste it into address bar of browser.
  8. It will ask to download and save media files on local drive.

Related Topics :


 

Give us your feedback