uploading works through modal dialog