Do not change tmp_name from WSF_UPLOADED_FILE ... otherwise the file will be removed at the end of the request

This commit is contained in:
Jocelyn Fiat
2013-03-29 15:10:51 +01:00
parent 1470389600
commit ec2792b645

View File

@@ -204,12 +204,12 @@ feature -- Basic operation
create f.make (n)
if f.exists then
f.change_name (a_destination)
set_tmp_name (f.name)
Result := True
end
end
ensure
exists: old exists implies exists
removed: not exists
moved: old exists implies (create {FILE_UTILITIES}).file_exists (a_destination)
end
feature -- Status