[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deletion if uploaded file


On 3/16/24 03:40, Safiur Rahman wrote:
Hi

Why is the the file uploaded through webfilebutton is deleted immediately when upload finishes?

In source code of upload module in GB.web.gui there is cancel(sKey) in finish procedure. Is that necessary?


Yes, it is necessary for the Upload module to manage the state of its uploads.

The WebFileButton's Finish event is fired before the Cancel statement. I am certain this is to give you the opportunity to copy or move the uploaded file at WebFileButton.Path to a different location to preserve it.

I have never used this and cannot verify what I stated is true because I am getting a 500 Internal Server Error when testing it.

--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Deletion if uploaded fileT Lee Davidson <t.lee.davidson@xxxxxxxxx>
References:
Deletion if uploaded fileSafiur Rahman <isafiur@xxxxxxxxx>