fix up the upload, to deal with empty filename (none selected)