Making WordPress.org

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5422 closed defect (bug) (wontfix)

Unable to upload ttml file from wp-admin

Reported by: casiepa's profile casiepa Owned by:
Milestone: Priority: normal
Component: WordPress.tv Keywords:
Cc:

Description

When trying to upload a .ttml file from the Media Library, the error 'Sorry, this file type is not permitted for security reasons.' is displayed although the ttml file is valid.

Attachments (1)

Capture.PNG (37.5 KB) - added by casiepa 2 years ago.

Download all attachments as: .zip

Change History (4)

@casiepa
2 years ago

#1 @dd32
2 years ago

Is there any real need to use the wp-admin uploader? What's the specific use-case?

Supporting it may require duplicated handling due to the front-end uploader using a different code path.

We can support it if needed, but it's just easier for everyone if it's only done from one place

#2 @casiepa
2 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Is there any real need to use the wp-admin uploader?

No. But a ttml file failed to upload in the frontend, so I tried in wp-admin. First message was that the file was not a valid ttml file (that was a better error message then the frontend). When that was fixed I got the error that I could not upload in the wp-admin although at the top it said ttml files were accepted.

We can support it if needed

Nah, we can close this one. (But I do need to do some more tests as it seems – is not supported in a ttml file)
thanks @dd32

#3 @dd32
2 years ago

But a ttml file failed to upload in the frontend, so I tried in wp-admin. First message was that the file was not a valid ttml file (that was a better error message then the frontend).

Ahah, so the validation rejected it and failed to provide an error message. That's a fair thing to fix for the uploader, but probably isn't hit normally since it should be rare for an application to generate an invalid file.

Note: See TracTickets for help on using tickets.