Unable to upload files withe same name twice?

General Forum
touraku
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 12 Apr 2015, 01:16

Re: Unable to upload files withe same name twice?

Post by touraku »

Hello
by trial and error (dont really know what I'm doing!) I got this script working and can now upload from _ _. File name image.jpg becomes image_1.jpg, image_2.jpg etc..
1. Follow intsructions above.
2. add $file_Name = $file['name']; to list of variables in the new code
3. edit all instances of $this->file_Name in new code to $file_Name
bingo - it now works.
Probably someone can do a better job.
Terry

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Unable to upload files withe same name twice?

Post by Jan »

Ok, thank you very much for this info, which version of PHP you are running on your server (or your webhosting provider runs)?

Jan
If you find Phoca extensions useful, please support the project
dmermigas
Phoca Member
Phoca Member
Posts: 10
Joined: 14 Sep 2016, 10:12

Re: Unable to upload files withe same name twice?

Post by dmermigas »

Hi, in ios10 the issue with images filename is finally resolved!!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Unable to upload files withe same name twice?

Post by Jan »

Ok, great to hear it.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply