Jan 05, 2016; 16:30
Jolle Carlestam
Upload of files fail in 9.3.1
Another unexpected change in 9.3.1. This time confirmed to fail on both OS X and on Linux 6.
Uploading files with anything but English chars in the file name will corrupt the name.
Here’s test code to try it with:
[
local(
upload = web_request -> fileuploads,
file_subject = wrp('subject'),
)
]
<!DOCTYPE html>
<html lang="en">
<head>
<title>File upload test</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
<input type="text" name="subject" value=""><br>
<input type=file name="upfile"><br>
<input type=submit value="submit">
</form>
<hr>
[#file_subject
br
#upload -> size ? #upload -> first -> find('filename')
]
</body>
</html>
Uploading a file called Räksmörgås.png with a subject input ”Räksmörgåsen” will keep the input text but corrupt the filename.
->
Räksmörgåsen
array((filename = Ra�ksmo�rga�s.png))
This worked prior to 9.3.1.
HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jan 05, 2016; 14:46
Mason Miller
Re: Upload of files fail in 9.3.1