You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because we use Payload internally, we would like to be able to overwrite files in the upload field. I have gone through the Payload source code and figured out that it is possible to do so through the local Payload instance. I have however not been able to figure out how to allow uploads to overwrite the old file through the regular admin panel (as it will always append -1 when the file already exists).
Can such a thing be done or would this require significant changes to the current code setup? If so, would someone be so kind to point me in the right direction as to where I might make these changes?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Because we use Payload internally, we would like to be able to overwrite files in the upload field. I have gone through the Payload source code and figured out that it is possible to do so through the local Payload instance. I have however not been able to figure out how to allow uploads to overwrite the old file through the regular admin panel (as it will always append
-1
when the file already exists).Can such a thing be done or would this require significant changes to the current code setup? If so, would someone be so kind to point me in the right direction as to where I might make these changes?
Beta Was this translation helpful? Give feedback.
All reactions