S
S
Seintero2017-04-06 17:54:26
symfony
Seintero, 2017-04-06 17:54:26

Why do their names break when uploading more than 10 files?

A very strange situation arose, I don’t even know how this is possible. There is a form with multiple loading. And if you upload up to 10 files, then the file names are correct. And if more, then all Russian letters to numbers are cut off. (yes, Russian names are evil, but we can't refuse them :s ... )
The configs have permissions to upload more than 200 files at a time. + the maximum weight is much more than I load .. can anyone have any guesses where to drop, at least in theory? Maybe in nginx there are additional settings for uploading files somewhere? :)
Initially, they were not loaded and one at a time - they put down the correct locale. Now it's up to 10.. it's very strange that the number 10 itself doesn't appear explicitly anywhere in the settings..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Ltonid, 2017-04-07
@AtaZ

I can only assume that all files have approximately the same name length and a typical overflow occurs. Check if the variables are cleared before loading each file is the first. The second is whether the number of the downloaded file is involved in the process of saving the file on the server, because from 0 to 9 - one digit, 10 or more - two digits, but this is not taken into account in the code. As far as I know, the file name is assigned already at the stage of copying from the temporary folder to the destination folder. The file is loaded temporarily as a hash name.

E
Eugene, 2017-04-06
@Jek_Rock

Have you looked here?
https://secure.php.net/manual/en/features.file-upl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question