Unable to upload anything on Front-End in 5.2.0-RC1

5 views
Skip to first unread message

Alexander Obuhovich

unread,
Jul 19, 2012, 5:19:21 AM7/19/12
to In-Portal Bugs
I was testing out 5.2.0-RC1 release recently and found, that no upload can be made on Front-End.
For example on a link submission page select an image and try to upload it. Error "Can't save file" will be displayed, but "/system/images/" folder is writable and I've checked it twice.

After some investigation I've found that this happened because of a fix in http://tracker.in-portal.org/view.php?id=1291 task, where variable $value['error'] containing regular upload status code was converted to string, but later on was compares using "===" operator with integer constant resulting in "no match" at all times.



Ready for testing.


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
front_upload_broken_fix.patch
Reply all
Reply to author
Forward
0 new messages