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:
@@ -204,12 +204,12 @@ feature -- Basic operation
|
|||||||
create f.make (n)
|
create f.make (n)
|
||||||
if f.exists then
|
if f.exists then
|
||||||
f.change_name (a_destination)
|
f.change_name (a_destination)
|
||||||
set_tmp_name (f.name)
|
|
||||||
Result := True
|
Result := True
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
exists: old exists implies exists
|
removed: not exists
|
||||||
|
moved: old exists implies (create {FILE_UTILITIES}).file_exists (a_destination)
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Status
|
feature -- Status
|
||||||
|
|||||||
Reference in New Issue
Block a user