Override autoupload method in file.js