using a separate function to handle plupload request.