How to assign a filename for an image? (only 1 image)

Discuss everything related to File Uploader. All versions. Any questions related to the File Uploader developing or using should be posted to this forum.

Moderators: Milton, ne_moj, zewa

chirng
Master
Master
Posts: 144
Joined: Jun 7th, '09, 04:15

How to assign a filename for an image? (only 1 image)

Postby chirng » Sep 8th, '16, 09:27

How to assign a filename for an image as only 1 image to be uploaded, please advise.

TQ

administrator
Site Admin
Site Admin
Posts: 5939
Joined: Jan 7th, '09, 23:18
Contact:

Re: How to assign a filename for an image? (only 1 image)

Postby administrator » Sep 8th, '16, 11:33

What do you mean "assign"?

Read this:
viewtopic.php?f=67&t=3051

chirng
Master
Master
Posts: 144
Joined: Jun 7th, '09, 04:15

Re: How to assign a filename for an image? (only 1 image)

Postby chirng » Sep 9th, '16, 04:32

"assign" that mean "rename", I would like to rename the uploaded image file.

administrator
Site Admin
Site Admin
Posts: 5939
Joined: Jan 7th, '09, 23:18
Contact:

Re: How to assign a filename for an image? (only 1 image)

Postby administrator » Sep 11th, '16, 09:03

See this:

## +---------------------------------------------------------------------------+
## | 7. Naming rules: |
## +---------------------------------------------------------------------------+
## *** uploaded files are given random generated names - true|false
/// $fileUploader->UseRandomNames(false);
## *** set prefix which will be added to uploaded files' names
/// $fileUploader->UsePrefix('textbefore_');
## *** set postfix which will be added to uploaded files' names
/// $fileUploader->UsePostfix('_textafter');
## *** add suffixes like {1},{2} when file names are identical
/// $fileUploader->UseSuffixes(true);

chirng
Master
Master
Posts: 144
Joined: Jun 7th, '09, 04:15

Re: How to assign a filename for an image? (only 1 image)

Postby chirng » Sep 13th, '16, 02:44

I would like to make a error report here:-

the image uploaded but the error message appear as below:-

File0
PHP did not report any uploaded file, maybe it was too large, try a smaller one

Please view the attached print screen. TQ.
Attachments
bold.jpg
error
bold.jpg (30.81 KiB) Viewed 1691 times

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: How to assign a filename for an image? (only 1 image)

Postby ne_moj » Sep 15th, '16, 07:37

Hello

Contact technical support
Link - http://www.apphp.com/support/open

Regards


Return to “ApPHP AJAX File Uploader”