System settings upload_check_exists vs upload_file_exists

Two system settings regarding file uploads are available:

• upload_check_exists
• upload_file_exists

The first one is in the docs. The last one is not and it does not seem to make any difference changing its value.

Wondering what the difference is exactly and what the purpose of the last one is.

After some more testing, it seems that upload_file_exists offers a prompt that the file already exists and is overwritten after clicking ok.
upload_check_exists makes no difference.

It’s a pity one can’t choose to cancel the upload if it exists.

What version of MODX are you using?

It looks like upload_check_exists was used in MODX 2 and upload_file_exists is used (for the same purpose) in MODX 3.

I can’t reproduce this. When I test it on MODX 3 with upload_file_exists set to Yes, the file won’t be overwritten.
How exactly do you upload the file?

I’m using ModX 3.05 and I’m dropping the file in the Media browser.
I can prevent or allow an uploaded file to overwrite an existing file by setting upload_file_exists but it would be nice if the user could decide to overwrite or cancel.
I just hoped that such could be done via the other (old) setting.

Yes, totally agree. There was a discussion about this somewhere else, either here or in github, but I can’t find it.

1 Like