ilab-media-tools icon indicating copy to clipboard operation
ilab-media-tools copied to clipboard

Wrong File URL for Video Files ( > 5 MB) using DigitalOcean Spaces in Wordpress Media Library

Open ChristophJeworutzki opened this issue 2 years ago • 1 comments

Describe the bug I'm getting a wrong File URL for Video Files in Wordpress Media Library using DigitalOcean Spaces.

To Reproduce Steps to reproduce the behavior:

  1. Enable Cloud Storage
  2. Set Storage Provider to "DigitalOcean Spaces"
  3. Set Provider Settings (Access Key, Secret, Bucket, … )
  4. Enable Upload Video Files
  5. Save Changes
  6. Go to Media Library
  7. Upload a Video (web supported file format e.g mp4)
  8. Click the Video
  9. Get "Media error: Format(s) not supported or source(s) not found"
  10. See File URL in the Attachment Info: 'fra1.digitaloceanspaces.com/my-bucket-name/…' insted of 'https://my-bucket-name.fra1.digitaloceanspaces.com/…'

Expected behavior Correct File URL for Video Files (same as for Image Files) "https://my-bucket-name/fra1.digitaloceanspaces.com/..."

Screenshots Screenshot 2022-10-19 at 17 25 00 Screenshot 2022-10-19 at 17 25 06

Server (please complete the following information)

  • Operating System: Ubuntu 20.04.5 LTS
  • PHP Version PHP 7.4
  • Web Server: NGNIX
  • Using PHP-FPM? Yes
  • Using WordPress Cron? No

How did you install the plugin? via composer

ChristophJeworutzki avatar Oct 19 '22 15:10 ChristophJeworutzki

The funny thing is that it works for small and short Video Files < 5 MB and < 10s

ChristophJeworutzki avatar Oct 19 '22 15:10 ChristophJeworutzki

Do you have mux or the mux player enabled? I tried to replicate this and couldn't. Size wouldn't have any bearing on anything at all.

jawngee avatar Oct 27 '22 06:10 jawngee

Yes. I have mux and mux player enabled. But still happends if I turn off both.

ChristophJeworutzki avatar Oct 27 '22 11:10 ChristophJeworutzki

I found the issue. Not sure why it exists. Will dig further tomorrow.

jawngee avatar Oct 27 '22 11:10 jawngee

I found the issue. Not sure why it exists. Will dig further tomorrow.

Nice one! Let me know if you need any further information!

ChristophJeworutzki avatar Oct 27 '22 12:10 ChristophJeworutzki

I found the issue. Not sure why it exists. Will dig further tomorrow.

Sorry for bothering you. Just wanted to know if you have any updates on this? Appreciate your help!

ChristophJeworutzki avatar Nov 03 '22 02:11 ChristophJeworutzki

Should be fixed in this latest release. LMK if u run into any problems.

jawngee avatar Nov 07 '22 18:11 jawngee

@ChristophJeworutzki did that fix things on your end?

jawngee avatar Nov 12 '22 03:11 jawngee

@jawngee Yes, I can confirm that it has been fixed! Thank you! 🙏

ChristophJeworutzki avatar Nov 12 '22 19:11 ChristophJeworutzki

Hi,

How was it solve @jawngee ?

Thanks nad regards

satodu avatar Mar 21 '23 18:03 satodu