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.
Comment | File | Size | Author |
---|---|---|---|
#2 | media-filename-could-not-be-added-2641120.patch | 4.06 KB | hkovacs |
| |||
allowed-uri-schemes.png | 5.32 KB | hkovacs |
Comments
Comment #2
hkovacs CreditAttribution: hkovacs as a volunteer commentedPlease take a look and let me know if this is ok or a bad idea.
Comment #4
NWOM CreditAttribution: NWOM commented@hkovacs: is this patch similar to Remote Stream Wrapper?
Comment #5
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing 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