File upload with special chars

QuestionsFile upload with special chars
Alexander Toth asked 2 years ago

Hello Abu,

I’ve the same problem of this old question:

File Upload with Special Chars

Can you write the solution that you found? Thanks


1 Answers
Abu Ghufran Staff answered 2 years ago

This was php bug and issue is fixed in php 7.1:

Alternate approach for older php versions was to modify the code in jqgrid_dist.php and search replace code of move_uploaded_file with following:

$destname = iconv('UTF-8', 'CP1252', $name);
if ( @move_uploaded_file($tmp_name, "$uploads_dir/$destname") )
$msg = "$uploads_dir/$name";

Recheck variable names as it may differ w.r.t. your library version.

Abu Ghufran - Dev Team
Grid 4 PHP Framework
Your Answer

6 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?