Hi!!
I join the @brigaill request. I was looking for something simpler: rename the uploaded image with a unique name, even if that meant overwriting the file.
Looking for an answer I have seen some threads with no answer, except for some exceptions:
-
Here @hughbris proposes something with the save: filename: property, but not being documented I don't know how to implement that.
-
Here @pamtbaau answers with the form file field, but according to the docu this field does'nt work for editing pages in the admin (a useful case), only plugins, themes and custom settings.
My intention (for ex.) was to allow the client to change the background image of a module through the admin panel, being that background image implemented through CSS (in the styles file, not in an html style attribute). I can't think of how to accomplish that any other way (any ideas?), but renaming the file would make it very simple.
Thanks for the help!