CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Persits File Upload -- move or delete original?

Print topic Send  topic

Author Message
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/
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.