Fixed error in .upload() api option handling

For file editors.