Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Imported Fromfrom: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/aedd0394de197ff9#

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 in 

Jira Legacy
serverIn-Portal Issue Tracker
keyINP-1060
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.Here is the task:

front_upload_broken_fix.patch

Related Tasks

Jira Legacy
serverIn-Portal Issue Tracker
keyINP-1119

Ready for testing.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com