Open filipanoscampos opened 1 year ago
Support References
This comment is automatically generated. Please do not edit it.
📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain
📌 FINDINGS/SCREENSHOTS/VIDEO
Simple Site
Uncaught (in promise) InvalidInputError: Invalid file type.
e https://wordpress.com/calypso/evergreen/87013.c85f0ade48803b5cbeab.min.js:2
$ https://wordpress.com/calypso/evergreen/71658.51b98915d12bb5e2dd0b.min.js:2
Atomic Site
Uncaught (in promise) BadRequestError:
e https://wordpress.com/calypso/evergreen/87013.c85f0ade48803b5cbeab.min.js:2
$ https://wordpress.com/calypso/evergreen/71658.51b98915d12bb5e2dd0b.min.js:2
📌 ACTIONS
From the slack ping above, agreement so far is that this should be possible, so moving forward as a bug report.
📌 ACTIONS
I assume this might be the issue?
const allowedFileTypes = mediaType === 'VIDEO' ? allowedVideoExtensions : allowedImageExtensions;
Can i work on this issue?
Hey @Shub3am ! Thanks for your interest in contributing! This issue won't be assigned to you specifically at this time, but that's not necessary in order for you to participate! Please refer to:
Quick summary
Our Media Libray allows uploading media files from a URL, but it returns an error for PDF files.
Steps to reproduce
Add New
button to select the option toAdd via URL
1 file could not be uploaded because an error occurred while uploading.
What you expected to happen
The PDF file to show in the Media Library.
What actually happened
The upload fails and an error is returned.
@dragstor noticed this response from an XHR request on an Atomic site:
And this one on a Simple site:
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple, Atomic
Logs or notes
6416275-zd-woothemes p2EDhh-20Q-p2#comment-8679