"SaveError.txt" file not found - what is this for?

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
spragers
Benefactor
Benefactor
Posts: 153
Joined: Fri Dec 27, 2002 9:11 am
Contact:

"SaveError.txt" file not found - what is this for?

Post by spragers »

Hi,

In my INI file, I have

[Files]
...
SaveAsErrorMessageFile=v:\pwb\txtfiles\SaveAsError.rtf
DownloadErrorMessageFile=v:\pwb\txtfiles\DownloadError.rtf
...

When I try to save a file, but there isn't a disk in the drive, I get the following error:

"SaveError.txt" was not found. (It should say "No floppy disk detected! For security reasons, files may only be saved or downloaded onto floppy disks. If you do not have a disk to use, you may purchase one at the circulation desk for $.50." - the content of the SaveAsError.rtf file.)

Followed by an empty message box. The error keeps reappearing until you press [Esc]. Am I missing a line in my INI file, or is PWB looking for the wrong file?

Using PWB2 2.04 R 4

I also have:

[Directories]
SaveAsDirectory=A:\
SaveAsErrorTitle=Floppy required
DownloadDirectory=A:\
DownloadErrorTitle=Floppy required

[RestrictedSave]
EnableRestrictedSave=True
SaveToTitle=Save To...
SaveToDrives=A
SaveToDriveError=Please insert a floppy disk and try again.
DisableFileDownload=False

Thanks!

Scott
Site Admin
Site Admin
Posts: 2537
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Sorry, these settings were inadvertently left out of the INI file.

[RestrictedSave]
SaveToDriveErrorTitle=Not Found
SaveToDriveErrorFile=SaveError.txt

By adding in these settings the dialog will perform as expected.

Please note, we will be doing away with the restricted save built into PWB. The restricted save will be moved to an external application starting with PWB v2.05, and referenced in the INI. This will take care of most of the short comings of the restricted save.

The [Files]SaveAsErrorMessageFile is used when there is a problem with the setting of the default Save As directory, not the Restricted save.

The [Files]DownloadErrorMessageFile can be removed and is no longer implemented.

--Scott

spragers
Benefactor
Benefactor
Posts: 153
Joined: Fri Dec 27, 2002 9:11 am
Contact:

Post by spragers »

Thanks! Looks like that did the trick.

The new restricted save add-on sounds very promising (any chance it can be incorporated into, say, Microsoft Office programs? Even with a default files location set to a:, it still ends up at the root of C: when opening files - even with that drive hidden, and access restricted to it. D'oh!)

Scott
Site Admin
Site Admin
Posts: 2537
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

The "new" system ManageDL and TDownload, interfaces directly with the Internet Explorer downlaod COM interface, if you are downloading MS Office documents, it may have an impact, but I have not specifically tested it.

http://www.teamsoftwaresolutions.com/ph ... .php?t=179

--Scott

mbhamp
Participant
Participant
Posts: 13
Joined: Wed Jan 07, 2004 4:46 pm

Post by mbhamp »

Wish to allow save to a:\ only. It was working, but it is now broken & I'm not sure why. Here are the PWB.ini settings I'm working with:

[Directories]
SaveAsDirectory=A:\
SaveAsErrorTitle=Floppy required
DownloadDirectory=A:\
DownloadErrorTitle=Floppy required

[RestrictedSave]
EnableRestrictedSave=True
SaveToTitle=Save To...
SaveToDrives=A
SaveToDriveError=Not Found
SaveToDriveErrorFile=SaveError.txt
DisableFileDownload=False

I keep getting a SaveError.txt was not found., then on OK I get a blank box titled "Not Found"

What's happening? We want patrons to be able to save to diskette only..

Scott
Site Admin
Site Admin
Posts: 2537
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Make sure the following lines are in you INI file.

[RestrictedSave]
SaveToDriveErrorTitle=Not Found
SaveToDriveErrorFile=SaveError.txt

Make sure the file spcified in the SaveToDriveErrorFile exists.

If both of these are met and you still get the error, please send a copy of your INI file to Support@TeamSoftwareSolutions.com and we can take a look at it.

--Scott

Post Reply