Files with ´ and ñ are not able to upload via control application

Hello,

I have a created a control application to let the user upload just one file. The field name is “file”. This is happening, when the user browse/select the file “revision.xls” then submit, the file looks successfully upload at the server side because I can print the file’s name using {file}. However if the user browse/select the file “revisi?n.xls” the file is not recognized at first place (the icon is at right location is not displayed), and using {file} prints “” (empty string). The same thing is happening with char like ? and tildes. I reproduced the scenario in blank application, I this error is not presented.

Also I would like to know how to access the file in the server, I mean, what is the equivalent of $_FILES[‘file’][‘tmp_name’]? I need the location of the uploaded file.

Thank you so much in advance.

Ok, responding me to the last question, I could achieve this task doing this:

// because it is a document file, the path to store document’s file by default is /scriptcase/file/doc/


$documentsPath = 'C:/Program Files (x86)/NetMake/v81/wwwroot/scriptcase/file/doc/';
$fileName = $documentsPath . $this->file;

Now $fileName is C:/Program Files (x86)/NetMake/v81/wwwroot/scriptcase/file/doc/revision.xlsx. In the other hand, the problem with chats stills there.

Hello, anyone? has somebody experienced this issue? Thank you

This will work on dev, but not on production. You have to use $this->ini->doc_path AFAIR If you want this to work

this not being able to store certain chars typically is an issue of charcterset conversion. Basically your filesystem and database system need to have a compatible characterset (preferably the same).
Then it all should work ok.

The database does not take the place in the party. Test cases using the same file (revisi?n.xls):

  1. Uploaded via custom PHP file standalone: success
  2. Uploaded via blank application: success
  3. Uploaded via control application: fail

Hello @Giu, thank you for guide me. I used $this->Ini->path_doc instead.