[solved] CI 1.7.x file uploading auto rename - is there a limit? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [solved] CI 1.7.x file uploading auto rename - is there a limit? (/showthread.php?tid=40349) |
[solved] CI 1.7.x file uploading auto rename - is there a limit? - El Forum - 04-06-2011 [eluser]SPeed_FANat1c[/eluser] Hi, I have such file uploading code: Code: function do_upload() And it used to work ok, but now I get an error - "The file name you submit already exists on the server" This function auto renamed files to naujiena1.jpg, naujiena2.jpg and so on. Now I checked the server there is already naujiena99.jpg. Is this possible that there is a limit of 100 such files? Or there might be something else wrong? EDIT: yeah, I now made a fresh function from the userguide to do that, and after it reaches naujiena 99 it shows the same error. Hmm. [solved] CI 1.7.x file uploading auto rename - is there a limit? - El Forum - 04-06-2011 [eluser]Phil Sturgeon[/eluser] Yeah this limitation is something that has been reported as a bug and will fixed by 2.0.2 hopefully. I've assigned it to myself, so hopfully I can find some time to sort it out! [solved] CI 1.7.x file uploading auto rename - is there a limit? - El Forum - 04-06-2011 [eluser]SPeed_FANat1c[/eluser] I now added the timestamp Code: $config['file_name'] = 'naujiena'.time().'.jpg'; |