maggiemel
Posts: 75
|
Posted: 04/05/2004, 1:15 PM |
|
Hello, everybody. I use the Persits file uploading component in a few of my applications, and I'm wondering if there's a way to cut down on "house-cleaning" by actually moving a file rather than copying it to the destination directory. One of my users will be scanning several thousand documents and then uploading them to server space using my CCS app and I'm looking for a way to streamline the process so that he doesn't have to go back at the end of each day/week/month and clean out his scanner directory.
Does anyone know of a way to modify the Persits component code or add something to the CCS code that will accomplish this?
Thanks in advance.
_________________
Melissa Cahill
http://www.hellcatmaggie.net/ |
|
|
DonB
|
Posted: 04/06/2004, 5:03 AM |
|
Since the file is moved using the FileSystemObject.MoveFile() method, the
file should be deleted from the source location. Since it is not, this
indicates the file permission/ownership are preventing that from occurring.
I'm surprised, though, that there is no error raised. Maybe it is but just
ignored by the FileUpload class.
However, the FileSystemObject.DeleteFile() method could be called by added
the AfterProcessFile event and perhaps that will work or raise an error to
assist you in determining the cause.
Most likely, the webserver account rights or the temporary folder
permissions prevent the file from being deleted from the temp location.
--
DonB
http://www.gotodon.com/ccbth
"maggiemel" <maggiemel@forum.codecharge> wrote in message
news:64071be72dbe85@news.codecharge.com...
> Hello, everybody. I use the Persits file uploading component in a few of
my
> applications, and I'm wondering if there's a way to cut down on
> "house-cleaning" by actually moving a file rather than copying it to the
> destination directory. One of my users will be scanning several thousand
> documents and then uploading them to server space using my CCS app and I'm
> looking for a way to streamline the process so that he doesn't have to go
back
> at the end of each day/week/month and clean out his scanner directory.
>
> Does anyone know of a way to modify the Persits component code or add
something
> to the CCS code that will accomplish this?
>
> Thanks in advance.
>
>
> _________________
> Melissa Cahill
> http://www.hellcatmaggie.net/
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
|