Page 1 of 1

no idea why image upload isn't working (solved)

PostPosted: Sun May 24, 2009 2:38 am
by Martin Pruss
Hi everybody
First of all : I am using the latest version of XF
I have done image upload fields in all flavors and they all do work fine.

but my latest attempt to build one failed , and i can't find the fault.
here is the excerpt of my field.ini
--------------snip---------------------------
[img_filename]
widget:label = "Name der Datei"

[img_mimetype]
widget:label = "Dateiattribut"

[img]
Type = container
widget:type = file
allowed_extensions = png,jpg,gif
widget:label = "download image"
widget:description = "bitte im format 108 x 108 pixel, und als .jpg"
--------------snap--------------------------

and here the fields structure:
img_filename varchar(64)
img_mimetype varchar(64)
img varchar(64)

I have created an img folder chmod(777) in the tables/content folder

but when i upload images something like this happens:

Image

the img folder where the image was supposed to be uploaded remains empty...

Any help is welcome (deadline tomorrow)
cheers
Martin

PostPosted: Mon May 25, 2009 3:14 am
by PolderBoy
Hello Martin,

I have looked at my fields file and saw that you didn't say were the file should be uploaded:
Type = container
widget:type = file
allowed_extensions = pdf
savepath = /home/administrator/www/BB/tables/D2D/PDF
url = /BB/tables/D2D/PDF

Maybe it helps.

Polderboy

PostPosted: Mon May 25, 2009 2:15 pm
by Martin Pruss
Hi PolderBoy
Thanks for your Help..
I gave it a try but... no success


again .. every hint is welcome
if somebody has an idea don't hesitate to post it here
cheers
martin

PostPosted: Mon May 25, 2009 3:02 pm
by PolderBoy
Hello Martin,

I have looked at:
http://xataface.com/documentation/how-t ... le-uploads

And maybe you are upsetting XataFace with the declaration of
img_filename varchar(64)
img_mimetype varchar(64)
Because that is what you need when you are storing the image as a blob.
In the documentation it is method 1

In Method 2: Storing files on the file system
there is no mention of the two. So I would think that XataFace doesn't need or want them.


That is the only thing I can think of.

PolderBoy.

Thanks

PostPosted: Sat May 30, 2009 3:12 am
by Martin Pruss
Hi PolderBoy..
Thanks a ton for taking care of my problem..
indeed file upload works fine without "mime_type" etc.

next time when i pass your polder while traveling i'll invite you to a pizza

cheers
martin

carefull now

PostPosted: Sat May 30, 2009 9:09 am
by PolderBoy
Hello Martin,

Carefull what you promise.
Glad that I could help somebody back.
I always say that when somebody helps me "I wish I could do something back"
Well I did.

With regards,
Brian