I made a file field using widget Media file selector.

My goal is to remotely link to files stored on another server.

I have set 'Allowed file extensions for uploaded files' to all these: avi, jpg, mov, png, doc, gif, pdf, ppt

I am using the 'web' option and am able to upload jpg files easily. However, when I try uploading avi or ppt, I get the following error:
...avi could not be added. Only the following types of files are allowed to be uploaded: image
...ppt could not be added. Only the following types of files are allowed to be uploaded: image

See attached screenshot of allowed uri schemes. It seems to me that if I am using the web option to remotely link to a file, then the system should not care what its type is.

I have seen other issues where it is a matter of installing additional uri schemes, so if you can let me know which ones to add, that is great.

As far as I can tell, for the web remote linking method, there should only be a check if the file extension type is allowed... so I am going to see what I can do to provide a patch to solve my problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hkovacs created an issue. See original summary.

hkovacs’s picture

Title: filename.avi could not be added. Only the following types of files are allowed to be uploaded: image » filename could not be added. Only the following types of files are allowed to be uploaded: image
Status: Active » Needs review
FileSize
4.06 KB

Please take a look and let me know if this is ok or a bad idea.

Status: Needs review » Needs work

The last submitted patch, 2: media-filename-could-not-be-added-2641120.patch, failed testing.

NWOM’s picture

@hkovacs: is this patch similar to Remote Stream Wrapper?

Chris Matthews’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
Assigned: hkovacs » Unassigned
Status: Needs work » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team