Fixed sending file submit ending.
Removed debug output.