Fix uploading empty data
Merge remote-tracking branch 'komamitsu/fix-uploading-empty-data'