1
In my system the user can include files within a comment. The problem is that some file extensions are giving error (for example gave error in an Excel spreadsheet).
I wonder if you have how to set up for it to save all types of files or if this is a limitation even and then I will create an error treatment due?
What I’ve already tried :
I searched the PHP documentation and right here on Stack Overflow but I found nothing about.
Note: I don’t need code only a clarification about the variable $_FILES.
And what was the mistake?
– Woss
PHP does not limit any file, or extension, or mime type, "of course", after all a file is only information. You do the validation so that the user chooses the desired format. What must have happened is an error in your code, could show the code where the error is occurring?
– UzumakiArtanis
@Stormwind has no configuration even in Apache stating what are the upload types? I thought it had
– Jefferson Quesado
There are some directives that may prevent the upload @Jeffersonquesado
– UzumakiArtanis
@Andersoncarloswoss one of the users who informed me about it, but did not see what error appeared , I am preparing a test and already put about
– Vinicius Shiguemori
@Stormwind , no error message appeared the variable $_FILES simply returned
["error"]=> int(1)
, I talked to my supervisor and he told me it was probably the file size , I believe that’s right because I tested with different files and it worked but I created a very large excel spreadsheet and it returned the["error"]=> int(1)
, I will make a bug treat for the size of the files , thanks to all– Vinicius Shiguemori