remove spaces or encode [FileName] during DPF upload
Hi
I’m using both Digital File Pro and Data Assist, to upload and insert an image into a db field
... works perfectly but I want to tweak the uploaded file name and incremental file names.
Is it possible to encode the [FileName] and [ExistingFileName]_[Increment] to remove or replace space with + sign during the DPF naming process
eg...
from: test image upload with space in name.jpg
to: test+image+upload+with+space+in+name.jpg
Thanks
nathan
Extra information, but not necessarily to read all ....
I have already tweaked the file name wizard entry to output as
encoded+gallery+name_test image upload with space in name.jpg
wizard code ...
<?php echo ((isset($_POST["imgName"]))?$_POST["imgName"]:""); ?>_[FileName]
... and having a hidden form field in the upload file form.
ie <input type="hidden" name="imgName" id="imgName" value="<?php echo urlencode($row_rsInfo['text1']); ?>" />
Where rsInfo is my recordset and text1 is the gallery name.
Gives the upload file name of ...
encoded+gallery+name_test image upload with space in name.jpg
I would like it to rename as ...
encoded+gallery+name_test+image+upload+with+space+in+name.jpg
And incremental replacements as ...
encoded+gallery+name_test+image+upload+with+space+in+name_1.jpg