changed File.read to File.new for upload

Use File.new instead of File.read so file can properly be submitted