UPLOADING Pictures

C

Cool-Water

Guest
Hi

1)I want to ask how it is possible to create a database that can upload pictures!

and how it is possible to crate an Pull down selction (where you can chooce between sex female/male) in database
 
H

hugo

Guest
yes this is very possible, create a database entry as LONGBLOB and use image-file in the admin-form-screen. Dadabik will put the name in the database and the file in the upload folder.
If you select single-select and enter the choises you get a dropdown menu, it's explained in the document.txt.
 
C

cool-water

Guest
it doesen't work!

I've set :
the Field Image (in the database) with the LONGBLOB (typ)

but it doesn't work!
 
T

timr

Guest
having problems with this also.
*********************************
Warning: move_uploaded_file(dadabik_tmp_file_31296735.jpg): failed to open stream: Permission denied in /home/isquatte/public_html/behindthegreendoor/program_files/include/business_logic.php on line 779

Warning: move_uploaded_file(): Unable to move '/tmp/phpruYa0s' to 'dadabik_tmp_file_31296735.jpg' in /home/isquatte/public_html/behindthegreendoor/program_files/include/business_logic.php on line 779
An error occurred when uploading a file.
Please Go back and try again.
****************************
am i doing something wrong, or is it a setting on my server?

tim

 
E

Eugenio

Guest
hugo wrote:

> yes this is very possible, create a database entry as
> LONGBLOB and use image-file in the admin-form-screen.

[....]

Why LONGBLOB? A simple varchar is enough to store the name.



(Latest version of DaDaBIK when this message was posted: 3.0 beta)
 
E

Eugenio

Guest
timr wrote:

> having problems with this also.
> *********************************

[....]

From documentation, requirements section:

PHP upload enabled if you want to use the upload feature (see PHP manual for php.ini and file permissions settings).



(Latest version of DaDaBIK when this message was posted: 3.0 beta)
 
T

timr

Guest
Thanks, Eugenio....

I did not have the correct path in config.php, corrected it to:

/home/isquatte/public_html/behindthegreendoor/program_files/uploads/

for a site called 'isquatte'; subdomain 'behindthegreendoor'; dadabik loacated in folder named 'program_files'; and 'uploads' as the upload folder...

using simple varchar in mysql, as you pointed out.

It now works fine. (wonderful, really)

Tim R
 
Top