fixed File Upload (broken due to several PHP Notice Warnings)