ajax create file before upload