Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2011 at 13:28 UTC
Updated:
18 Oct 2014 at 10:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
arthurf commentedInvestigating
Comment #2
arthurf commentedThere is an overlap with #1201924 Marking this a a duplicate and closing.
Comment #3
smartinm commentedI think this issues is not related to #1201924: Widget does not respect settings in file_field_instance_settings_form (uri scheme, directory, extensions, file size).
The media field setting "Allowed URI schemes" (allowed_schemes) is totally ignored. I think it's never been implemented.
The patch in comment #30 from related issue:
But the
schemesglobal option is never used in the code.Comment #4
xcafebabe commentedI'm facing the same issue described by @smartinm in #3.
If you select only the private uri scheme, images uploaded by media browser are always stored in the public folder. This happens with Media version 7.x-2.0-unstable6+70-dev
This issue is related with #1201924: Widget does not respect settings in file_field_instance_settings_form (uri scheme, directory, extensions, file size) but the patch proposed in comment #30 on that issue does not match with the current code in branch 7-x-2.x
Comment #5
technikh commentedsame issue here. though the file field is configured to be private, the uri scheme in the database shows public://
Comment #6
devin carlson commentedMarked #1994278: Take into account the allowed_types and allowed_schemes of the media module field widget as a duplicate.
Comment #7
devin carlson commentedA patch to ensure that the upload destination scheme is one of the allowed schemes.
For the related File entity issue, see #2217841: Scheme selection form provides options not allowed by the field settings.
Comment #8
dave reidCommitted #7 to 7.x-2.x.