Title: Optional storage location selection
Last modified: May 12, 2020

---

# Optional storage location selection

 *  [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/)
 * (@ihuongdanvn)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/optional-storage-location-selection/)
 * Hello author. I am using the website [https://coredp.com](https://coredp.com)
   and I want to use this plugin. But I have a little problem. I just want to upload
   the installation file to Amazon S3 or Digitalocean storage. As for the images
   I still want to save on my website. Meaning when uploading files I want to choose
   a storage location. Can you help me Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foptional-storage-location-selection%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * (@ianmjones)
 * [6 years ago](https://wordpress.org/support/topic/optional-storage-location-selection/#post-12858614)
 * I think you’re looking for the as3cf_pre_upload_attachment filter, which you 
   can use to “abort” the offload of images etc.
 * [https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront-tweaks/blob/96d9fc03ffcfdc1d2e77b0a1a53891e6e1a76e30/amazon-s3-and-cloudfront-tweaks.php#L437](https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront-tweaks/blob/96d9fc03ffcfdc1d2e77b0a1a53891e6e1a76e30/amazon-s3-and-cloudfront-tweaks.php#L437)
 * Alternatively, check out the as3cf_allowed_mime_types filter (also in that Tweaks
   plugin), where you can change which file types WP Offload Media is allowed to
   offload.

Viewing 1 replies (of 1 total)

The topic ‘Optional storage location selection’ is closed to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/optional-storage-location-selection/#post-12858614)
 * Status: not resolved