Commit the transaction after an upload is recorded and logged, to avoid losing images...