Fixed EZP-20532: Error uploading image

Make sure that the proper return type is used, according to $maxSize