Gossamer Forum
Home : Products : DBMan : Customization :

file upload problem

Quote Reply
file upload problem
hello!

i have a great problem. i wanna install a little newssystem using dbman. i have now set up a database. i have included the jpdenis fileupload mod /1 file), cause i wanna upload one graphic per record.

i have read so many in this forum but i could not find a solution. my database is not working.

if i call the script nothing apears and i can not debug?

i wanna have a easy solution to write a newsentry with an picture in it ...

probably you can help me. thanks so much.

i have uploaded the following files:

http://www.rc-web.at/txt/cms.txt
http://www.rc-web.at/txt/cmscgi.txt
http://www.rc-web.at/txt/cmshtml.txt

thank you
peter
Quote Reply
Re: [viennawood] file upload problem In reply to
so i have tested a little bit, but no solution.

the only mistake i found is in the cmshtml where i have in the

sub html_record_form {

.......

<TR><TD ALIGN="Right" VALIGN="TOP"><$font>BildUrl: </FONT></TD>
<TD VALIGN="TOP">&nbsp;<INPUT TYPE="TEXT" NAME="BildUrl" VALUE="$rec{'BildUrl'}" SIZE="

......

the name of the field is not "BildUrl", but only "Bild".


Another question?
Has anyone probably a little picture-upload database for me, that i can test the function?

that could be a absolut simple database, No stress please.

if you have such a db please send the files to me

peter@rc-web.at

1000 thanx
Quote Reply
Re: [viennawood] file upload problem In reply to
I did notice in your .cfg file you don't have a field:

Filename => [10,'alpha',0,255,1,'',''] # (Change the field number to fit with your database definition.)

You will need to change the "Bild" field name to match up with your .cfg file.

I noticed that you have debugging turned on but it's not displaying errors. Try moving the line:

$db_debug = 1;

within your .cfg file to above the section:
# File and URL's

this will help catch errors within the .cfg file.

In your sub html_record you have:
print qq|

print qq|

That may be causing your problem as you need to close off the first print statement before starting another. Try removing one of those.

Are you requiring a graphic to be uploaded .. or having it as just an option?

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] file upload problem In reply to
hi loisc!

thank you for your tipps, but i got stuck. would it be possible, that someone (you? Wink) can provide me a simple example database including the picture upload mod (e.g. field1=name, field2=picture) ? pleaaassseeeUnsure that would be very very fine. if its possilbe send me the files, so i can after testing, include my other fields.

1000 thanks peter
Quote Reply
Re: [viennawood] file upload problem In reply to
If you send me your FTP info via a private message I'll help you get the file upload working.

Also let me know if you are requiring a graphic to be uploaded with each record.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/