fix preload and handle multiple file upload for mobile