bug #2407: Fix Image upload to Sunstone running under Apache
(cherry picked from commit f8e2e65b0170268e9c72d52c4fe9f0e13fa05acd)