Forums

Uploading File not working!

boogieman 14 Nov, 2008
Hi All,

I almost have a perfect form, and now i have a last error. I have utilized the "Upload" file feature in my form and it does not upload. Do i need to change permissions? I don't even know where the file gets uploaded once it works... Anyways i get this error...

JFolder::create: Could not create directory
Couldn't create upload directroy 1
JFolder::create: Could not create directory
Couldn't create upload directroy 2

I have two fields for uploading a file within my form. It looks like it could be permssions but i'm not sure. Any help is appreciated!

~Thanks. :?
GreyHead 14 Nov, 2008
Hi boogieman,

This is 99.9% sure to be a permissions problem. Please check your server logs and ask your ISP what needs to be done. Tricky to answer from here as there can be different causes depending on your set-up.

Bob
Max_admin 14 Nov, 2008
Hi, the file will get uploaded to components/com_chronocontact/uploads/form_name/ so it looks like it can't create the form_name folder, check your Joomla directory permissions page!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
boogieman 14 Nov, 2008
Hi there, you guys are great! Ok so first part is solved, I can complete my form now by changing the permission on the components/com_chronocontact/uploads/ folder to CHMOD 777. I selected a file to upload a "JPG" and the I now see a new folder has been created but no images have been uploaded. Also when i check my db, in the Image Field, it gives me the location of the actual file uploaded... on my computer??? Example C:\Users\Alex\My Pictures\sample.jpg.

Can you guys help me out again here??? ๐Ÿ˜ฒ
boogieman 14 Nov, 2008
Hi Guys, I see that ChronoForms has created a foldering in "Uploads". Within it is a single index.html document with a single word "NULL". Does this help? Am i missing something? Thanks.
Max_admin 15 Nov, 2008
I think you didn't add the enctype tag, please check the FAQs or the forums for where to add the enctype tag and whats the syntax!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 15 Nov, 2008
enctype="multipart/form-data"
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
boogieman 15 Nov, 2008
Hi have entered the enctype: see my picture.
Also this is my file name and size.. photo:jpg,jpeg,tiff{999999999-1},Logo:jpg,jpeg,tiff{999999999-1}
~Still not working...๐Ÿ˜ฒ
Max_admin 16 Nov, 2008
Hi, you didn't close the enctype tag in your image i see!

your file code should be :
photo:jpg|jpeg|tiff{999999999-1}

separate the extensions with | and not ,

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
boogieman 17 Nov, 2008
I've tried doing what you said, still no uploads. This is getting real frustrating! ๐Ÿคจ

photo:jpg|jpeg|tiff{999999999-1},Logo:jpg|jpeg|tiff{999999999-1}

~Thanks
GreyHead 17 Nov, 2008
Hi boogieman,

Please post a form backup here so that we can see all the code - maybe there is some little setting that is incorrect.

Bob
boogieman 17 Nov, 2008
Attached is the form that i'm using.
GreyHead 17 Nov, 2008
Hi boogieman,

Thanks - that's the Form HTML OK. Please will you take full backup using the Backup icon in the Forms Mananger. That should create a .cfbak file with all of the form settings. (You'll need to zip it to be able to post it here I think.)

Bob
boogieman 17 Nov, 2008
Sorry, wasn't sure what you meant by "Backup". I've attached the backup.๐Ÿ˜ถ
GreyHead 17 Nov, 2008
Hi Boogieman,

Thanks - just taken a quick look and I can see that in the General Tab the enctype="mulitpart/form-data" is missing the final quote. Please check and see if this cures the problem.

You probably also need:

(a) to put quotes around the attribute values in the input tags as ChronoForms uses these to parse the html
<INPUT name=logo  type=file id=logo size="20" >
shoud be
<input name="logo"  type="file" id="logo" size="20" />


(b) make sure that the names in the html and the File Uploads tab are identical - you have 'Logo' in one and 'logo' in the other.

Bob

[attachment=0]17-11-2008 21-20-50.png[/attachment]
boogieman 18 Nov, 2008
That did it! Awesome! Thanks, I finally got this to work! Thanks!๐Ÿ˜›
This topic is locked and no more replies can be posted.