Closed billmn closed 12 years ago
All messages are added after processing using the upload language file.
Does this exist and is it up to date (i.e. does it contain a string for UPLOAD_ERR_DUPLICATE_FILE)?
Yes and all other messages works fine ... and yes, I have \Upload::UPLOAD_ERR_DUPLICATE_FILE in lang file
I can not reproduce it:
'errors' =>
array
0 =>
array
'error' => int 110
'message' => string 'A file with the name of the uploaded file already exists' (length=56)
This suggests there must be an issue with your language file. Maybe one exists in app (or elsewhere, like in a module) that doesn't have this?
@billmn any feedback?
No ... there aren't any "upload.php" language file in other folders. I don't know why but I have the same problem with another project in FuelPHP (that use the last version of CORE, ..)
I think that I can test upload in another new project with clean FuelPHP files this evening and update this issue soon
Ok. I'm very interested to see what happens, as I can't reproduce it here.
Ok ... I have the same error on a fresh install.
I've created a repo for you : https://github.com/billmn/fuel-upload-test I know, the code is horrible, but is only a test :)
array(1) { [0]=> array(1) { ["error"]=> int(110) } }
Thanks for taking the time, this made finding it a breeze!
I've set Upload configuration to doesn't "auto_rename" and "overwrite" files.
When I upload a file tthat already exists I found the error in Upload::get_errors() array, but missing the "message" key (I've checked and 110 is the right error code)