Merge pull request #1329 from dpalou/MOBILE-2376
MOBILE-2376 ws: Treat PHP as an invalid extensionmain
commit
9b99633f7c
|
@ -372,7 +372,7 @@ export class CoreWSProvider {
|
|||
const ext = this.mimeUtils.getFileExtension(path);
|
||||
|
||||
// Google Drive extensions will be considered invalid since Moodle usually converts them.
|
||||
if (!ext || ext == 'gdoc' || ext == 'gsheet' || ext == 'gslides' || ext == 'gdraw') {
|
||||
if (!ext || ext == 'gdoc' || ext == 'gsheet' || ext == 'gslides' || ext == 'gdraw' || ext == 'php') {
|
||||
// Not valid, get the file's mimetype.
|
||||
promise = this.getRemoteFileMimeType(url).then((mime) => {
|
||||
if (mime) {
|
||||
|
|
Loading…
Reference in New Issue