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

A place for users and developers of the Xataface to discuss and receive support.

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

Postby Martin Pruss » Sun May 24, 2009 2:38 am

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
Last edited by Martin Pruss on Sat May 30, 2009 3:15 am, edited 1 time in total.
Martin Pruss
 
Posts: 61
Joined: Tue Oct 23, 2007 2:22 pm
Location: Berlin

Postby PolderBoy » Mon May 25, 2009 3:14 am

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
PolderBoy
 
Posts: 72
Joined: Fri Apr 03, 2009 12:53 am

Postby Martin Pruss » Mon May 25, 2009 2:15 pm

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
Martin Pruss
 
Posts: 61
Joined: Tue Oct 23, 2007 2:22 pm
Location: Berlin

Postby PolderBoy » Mon May 25, 2009 3:02 pm

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.
PolderBoy
 
Posts: 72
Joined: Fri Apr 03, 2009 12:53 am

Thanks

Postby Martin Pruss » Sat May 30, 2009 3:12 am

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
Martin Pruss
 
Posts: 61
Joined: Tue Oct 23, 2007 2:22 pm
Location: Berlin

carefull now

Postby PolderBoy » Sat May 30, 2009 9:09 am

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
PolderBoy
 
Posts: 72
Joined: Fri Apr 03, 2009 12:53 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 11 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved