fix some bugs: dragout when adding photos and file deletion just after an

upload
1.0.3