Fix uploading (wrong usage of in_array)