Closed (fixed)
Project:
File Upload Options
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2020 at 14:56 UTC
Updated:
8 Jun 2020 at 22:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
imclean commentedThis module takes over file handling as that is how it is designed to work. While it does get around core's limitations using the standard "replace" option, it won't necessarily work in every case.
I don't use the module you mention. Could you propose a solution submit a patch for me to review?
Comment #3
imclean commentedI think I see the problem. It's not always an entity, it might be a field definition.
Comment #4
imclean commentedThis is probably the same issue I'm having with fillpdf. The issue is we're looking for an entity with a file field which doesn't work if a field is defined in code.
In the case of fillpdf, the overview form is simply defining a managed file field. Is this the case with the editor_file module?
There are a couple of options.
Comment #5
imclean commentedA 3rd option would be to specify an arbitrary field name within File Upload Options settings. This might be the cleanest method.
Comment #6
imclean commentedTry this.
/admin/config/media/file-upload-optionsComment #7
imclean commentedA patch would help.
Comment #8
imclean commentedMissed a couple of things.
Comment #9
imclean commentedTypo.
Comment #10
imclean commented@d8v15 please test with editor_file.
Steps:
Once this works, and you have viewed an editor_file file upload field, you can then configure the behaviour at
/admin/config/media/file-upload-options.Comment #11
imclean commentedComment #12
imclean commentedComment #14
imclean commentedI've committed anyway. Please try development version.
Comment #15
imclean commentedOpen a follow up issue if there are any problems.
Comment #16
imclean commented