Maximum number of upload files

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
kumar
User
Posts: 111

Maximum number of upload files

Post by kumar »

When I try to upload a file I am getting following error in popup "Maximum number of files exceeded". Total number of files uploaded by me till now is 116.
In ewcfg11.php I found following line define("EW_MAX_FILE_COUNT", 0, TRUE); // Max file size
Is it limits the upload count?


mobhar
User
Posts: 11702

Post by mobhar »

Yes, it seems the constant is for limit the maximum number of uploaded files. Zero should mean unlimited. Try to define the largest value.


kumar
User
Posts: 111

Post by kumar »

I modified as, define("EW_MAX_FILE_COUNT", 1000, TRUE);
Now no error. Thank you.


cmumad
User
Posts: 5

Post by cmumad »

Anyway to set this number into project file directly without editing output file after that?


arbei
User
Posts: 9354

Post by arbei »

You may simply use Global Code, e.g. (Assume v2023)

Config("MAX_FILE_COUNT", 1000);


cmumad
User
Posts: 5

Post by cmumad »

Thank you so much.

I already try to put
Config("MAX_FILE_COUNT", 1000);
but still get error UploadErrMsgMaxNumberOfFiles

Do I need to do something more?


cmumad
User
Posts: 5

Post by cmumad »

I forgot to tell that

What I try to do is in import port not normal uploading file in to table field.


mobhar
User
Posts: 11702

Post by mobhar »

What did you mean by in import port not normal uploading file in to table field.? Can you explain it in more detail? A real example would be better to comprehend your situation.


arbei
User
Posts: 9354

Post by arbei »

You may change ew.importUploadOptions.maxNumberOfFiles (default is 10) by JavaScript.


Post Reply