Gossamer Forum
Home : Products : DBMan : Customization :

Get ERROR when I try to add a picture

Quote Reply
Get ERROR when I try to add a picture
Thank you JPDeni for help.

I have download the script "Multiple file upload" from Resource Center.
I have modified my script and now he show me that I can upload a picture, but when I try it I get the following error:

Error: Unable to Add Record

There were problems with the following fields: The directory doesn't exist. Make sure that
this directory is a complete path name,
not a URL or something similar. It should look similar to
/home/username/public_html/uploads

Please fix any errors and submit the record again.

I don`t know where I must create the right directory that the dbman can save in similar directory.

I am using the "SAMBAR4.4" Server

I modified the default.cfg looks like:

# File upload parameters
# --------------------------------------------------------
#
# File uploads -- if you want to be able to upload files, set this to 1
$db_upload = 1;

# Full path to directory for uploaded files -- NOT A URL!!!! No trailing slash please.
$SAVE_DIRECTORY = "/upload";

# Full URL to directory for uploaded files. No trailing slash please.
$SAVE_DIRECTORY_URL = "http://127.0.0.1/upload";

# Defines the total number of bytes that can be uploaded. Files that exceed
# this limit will not be saved on the server. Set this to zero in order to
# disable size checking.
$MAXIMUM_UPLOAD = 50000;

# Defines the total number of files that can be attached to a file. If a user
# tries to exceed the limit, no files will be added. You must set this to a value.
# It cannot be 0.
$MAXIMUM_FILES = 1;

# List of allowable file extensions. If the file does not have one of the extensions
# listed, it will not be saved to the server. The format for the setting is
# \.[extension]$ If you want to allow more than one extension, separate the options by
# a | character.
$ALLOWED_EXT = '\.gif$|\.jpg$';



So who can help me a little bit more

Thank you for time

Best regards


donkey

Quote Reply
Re: Get ERROR when I try to add a picture In reply to
I have'nt looked at this add on but, it looks like you have'nt created the directory yet. Make sure your path is correct and the directory is created on your server. Also set the permissions.

Good Luck!

http://www.mediamasters.net
Innovative web design and e-business solutions...
1-253-853-1731
Quote Reply
Re: Get ERROR when I try to add a picture In reply to
Also, you need to enter the *full* path, not a relative path, in $SAVE_DIRECTORY.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Get ERROR when I try to add a picture In reply to
Now it does work!

I have changed following looks like:

# Full path to directory for uploaded files -- NOT A URL!!!! No trailing slash please.
$SAVE_DIRECTORY = "c:/programme/sambar44/docs/upload/bilder";

# Full URL to directory for uploaded files. No trailing slash please.
$SAVE_DIRECTORY_URL = "http://127.0.0.1/upload/bilder";


Thank you very much JPDeni


Greatings from Tirol/Austria

with best regards

donkey

Quote Reply
Re: Get ERROR when I try to add a picture In reply to
Hi chark

Thank you for your time

Now it does work

with best regards

donkey