Gossamer Forum
Home : Products : DBMan : Customization :

upload mod/modify record w/image prob

Quote Reply
upload mod/modify record w/image prob
I have installed the multiple file upload mod for DBman and have the following problem.

the script and mod work great until I modify a record with an image or images, then the following happens.

- I can delete the associated images with the records but when I try to add new images for an existing record, I get the following message;
: unable to open directory. Reason: No such file or directory

I've tried everything. Ideas please...

~Rick
POC Web Services - www.POC.us
Quote Reply
Re: [lostboy] upload mod/modify record w/image prob In reply to
Without viewing your files it's hard to guess what could be wrong. Please check the FAQ noted below under the section "Images" for the latest changes for the image upload mod.

Perhaps making these changes will help solve your problem. If not go over the mod instructions carefully and be sure you have made ALL the necessary changes.

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/
Quote Reply
Re: [lostboy] upload mod/modify record w/image prob In reply to
Hi Rick,

Please ensure that the directory in which the upload files will be written is correct. This variable usually is set in the config file

Hope that helps

Cheers,

Dat

Scripts installation and plugin creation
Plugins
Quote Reply
Re: [lostboy] upload mod/modify record w/image prob In reply to
Dear lostboy ,

I got the same problem with you.

I think it shouldn't be the problem of path setting up because it could create new directory and upload files corrently when adding a new record.

The problem occur in the subroutine validate_upload; I hv made changes as followed:

opendir (GRAPHIC, $SAVE_DIRECTORY/$newdirname) or &cgierr("unable to open directory. Reason: $! $SAVE_DIRECTORY/$newdirname");


It returned the correct path in the debug mode when I was trying to modify a record.

Any ideas?

Many Thx.......
Quote Reply
Re: [KiloMeter] upload mod/modify record w/image prob In reply to
As stated above there have been some changes made to many of the mods including the multiple image upload. The changes are noted in the FAQ under the section "Images" for this mod.

Change the line your referenced to:

opendir (GRAPHIC, "$SAVE_DIRECTORY/$newdirname") or &cgierr("unable to open directory. Reason: $!");

You may still want to check for additional changes to the mod posted in the FAQ.

Hope this helps

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/