Pure PHP Upload 3 Support Product Page
How do I save the renamed filename to database?
Asked 29 Oct 2013 17:57:30
1
has this question
29 Oct 2013 17:57:30 Andre Bender posted:
Files seem to be renamed when overwriting is activated. How do I save the rewritted filename to my database? Replies
Replied 29 Oct 2013 18:40:18
29 Oct 2013 18:40:18 Teodor Kuduschiev replied:
Hello,
When using the overwrite option, if there is a file with the same name already uploaded to the server gets overwritten with the newly uploaded one. No filenames get changed.
When using the overwrite option, if there is a file with the same name already uploaded to the server gets overwritten with the newly uploaded one. No filenames get changed.
Replied 29 Oct 2013 20:34:54
29 Oct 2013 20:34:54 Andre Bender replied:
Sorry I meant "make unique".
If the filename is like this "file (12).jpg" the saved one the server is like "file_12.jpg" but saved is "file (12).jpg". Where do i get the new filename to be saved?
If the filename is like this "file (12).jpg" the saved one the server is like "file_12.jpg" but saved is "file (12).jpg". Where do i get the new filename to be saved?
Replied 29 Oct 2013 20:53:44
29 Oct 2013 20:53:44 Andre Bender replied:
Even if I use overwrite the uploader changes the name of the file from
K1024_ Herbstausflug 2009 (1).JPG
to
K1024__Herbstausflug_2009_1.JPG
but saves K1024_ Herbstausflug 2009 (1).JPG into the database ...
K1024_ Herbstausflug 2009 (1).JPG
to
K1024__Herbstausflug_2009_1.JPG
but saves K1024_ Herbstausflug 2009 (1).JPG into the database ...
Replied 30 Oct 2013 09:34:45
30 Oct 2013 09:34:45 Teodor Kuduschiev replied:
Hello,
By default Pure PHP Upload 3 replaces spaces with underscores, and removes the special characters as in the web standards it is not quite a good idea to have empty spaces in the filenames/page urls.
You can get the filename after the upload using this binding:
By default Pure PHP Upload 3 replaces spaces with underscores, and removes the special characters as in the web standards it is not quite a good idea to have empty spaces in the filenames/page urls.
You can get the filename after the upload using this binding:
Replied 30 Oct 2013 10:04:21
30 Oct 2013 10:04:21 Andre Bender replied:
Hi Teodor
I tried this but's it not writing the filename into the datafield. It's empty.
I put the field value into a hidden form field and insert this.
I tried this but's it not writing the filename into the datafield. It's empty.
I put the field value into a hidden form field and insert this.
<input name="HFilename" type="hidden" id="HFilename" value="<?php echo $ppu->files("Filename")->fileName ?>">
Replied 30 Oct 2013 17:49:43
30 Oct 2013 17:49:43 Teodor Kuduschiev replied:
Please provide a link to your page to:
Replied 26 Mar 2014 16:27:20
26 Mar 2014 16:27:20 Teodor Kuduschiev replied:
Hello
This problem is fixed in the latest version. Please update.
This problem is fixed in the latest version. Please update.