Opened 6 years ago
Closed 6 years ago
#44657 closed defect (bug) (duplicate)
Audio shortcode is not working with Dropbox links
Reported by: | gemmaevans | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | |
Component: | Shortcodes | Keywords: | |
Focuses: | Cc: |
Description
The problem
Audio files in Dropbox no longer play when embedded using the audio shortcode, even though the file is publicly available.
Steps to reproduce
- Upload an .mp3 file to Dropbox.
- Copy the Dropbox link (public).
- Create a new post.
- Add the Dropbox file URL to the audio shortcode in the post using
[audio src="FILE-URL.mp3"]
. - Publish the post.
- View the post on the front end and click play on the audio player.
The result
I expected to be able to play the .mp3 file from within the post — but this does not happen and the player displays a time of 0:00. The Dropbox URL plays back if I visit it directly in a browser but not once it has been embedded into the post.
Discussion on the [Dropbox forum https://www.dropboxforum.com/t5/Photos-and-videos/mp3-URL-ending-with-mp3/m-p/194990/highlight/true#M12261] suggests the audio file should be playable if ?raw=1
is added to the end of the URL. However, the shortcode doesn't seem to recognise this an audio file because it doesn't end in an audio extension like .mp3.
Originally reported in: https://en.forums.wordpress.com/topic/audio-shortcode-not-working-on-free-plan/
Hello @gemmaevans, thanks for the report. The underlying issue is
wp_check_filetype()
not recognizing the file extension. We're already tracking this issue in #30377.