Forums

File Upload Function Won't Upload Music Files

Nochron 13 Jan, 2012
Hi,

I've done an exhaustive search both in this forum and online, and tried everything I could find, but the "Submit Files" function on Chronoforms is still not working for me (I'm using v4 on Joomla 1.7). I want my users to be able to upload and submit music files, but it's not working for me at the moment. I'm a newbie, though, so I'm sure there's something I've missed. Even if you can't upload music files (which is essential for my website), I also tried adding PDF's to my allowable files, and even this doc type won't show up when I hit submit.

Here's what I've done so far:

I've made sure all of the file upload info (field name, field ID, field class, field title) is the same label (file_upload) as the label that precedes the allowable file types in the "On Submit" field in the "Events" tab (again, file_upload). I've tried both upper-casing and lower-casing the allowable file types (again, it's essential that the user be able to upload and submit audio files). I've done everything it says to do in your website's FAQ section (I put enctype='multipart/form-data' in the Form Tag attachment field under the General tab, I have entries in all four fields on the File Uploads tab (again, file_upload--not sure if this is right, I have Enable Uploads set to 'Yes', and I'm pretty sure I have a form input with type='file' and that the name of the field matches the entry on the File Uploads tab Field Names field).

The only two things I wasn't sure how to do were "Check in your configuration.php file that there is a value set for $mosconfig_fileperms; if it is blank or set to '0000' please set it to 0644"--there is no line like this in my configuration.php file in my FTP manager, and when I try to add it, it won't save; and "Check that "chmod new files" is ticked in Joomla's Global Configuration"--I don't see this anywhere when I go into "Global Configuration."

Also: I've tried all different Upload Paths, none of which do the trick (and all of which are valid, according to the IT guy I spoke to with my web hosting company).

Anyway, I'm at my wit's end here. Can anyone help? Or maybe you flat-out can't upload music files using Chronoforms v4? Thank you in advance for any help you can give me.
GreyHead 15 Jan, 2012
Hi Nochron,

Please check the video below and check that you have consistently matched the input names in the various boxes.

Your upload folder does need to be Chmod'd to 644 or possible 755. Your FTP manager should have a permissions setting that will let you set that but the Joomla! and ChronoForms defaults usually work.

The $mosConfig settings look as though they go back to Joomla! 1.1 or early 1.5 and don't apply to Joomla! 1.7.

Bob

[flash=640,360]http://www.youtube.com/v/pdgxL_28t18[/flash]
Nochron 15 Jan, 2012
Thanks for your quick response, Bob. I've followed that video three times now (I found it the other day online) and still it's not working. I've contacted my FTP host to see about my settings. Other than that, not sure what to do. Will follow up once I get a response from them.

Chris
Nochron 17 Jan, 2012
Hi again Bob,

I've checked with my FTP host, and they assured me the permissions settings are right. I'm wondering if the issue has something to do with the following on your FAQ's page:

"Check that "chmod new files" is ticked in Joomla's Global Configuration."

But when I go to Joomla's Global Configuration page (I'm using Joomla 1.7), I don't see this "chmod new files" box anywhere--is this an FAQ from an earlier version of Chronoforms? Or maybe it refers to an earlier version of Joomla? If so, do you know what the equivalent of this direction is for Joomla 1.7?

Not sure what more to do at this point. Should I go into the Permissions tab in Joomla's Global Configuration and change the "Public" settings in some way that would allow users to submit forms?

I'm totally lost. Thanks.
Nochron 17 Jan, 2012
Hi again,

Also, I'm confused by this line from the FAQ section of your website re: troubleshooting file upload problems:

Check that you have entries in all four fields on the File Uploads tab (no blanks).

I didn't see where you filled in all of the fields on this page in your Youtube demo above, just "field name" and "field id." If the name of my "field name" and "field id" is "file_upload", do I also have to write "file_upload" in the "field class" and "field title" fields? Or perhaps I've got my tabs mixed up and this is not the area the video above is referring to?

Thanks.
GreyHead 17 Jan, 2012
Hi Nochron,

Pretty much all of the FAQs are for ChronoForms v3 or earlier. You can ignore them for CFv4.

Please drag a Debugger action into the Form OnSubmit event and post the debug output you see when the form submits here.

Bob
Nochron 17 Jan, 2012
Hi Bob,

Thanks for getting back to me, I appreciate it. Here is the debugger info I got (please bear in mind that I increased the allowable file size to 80 megs in Chronoforms before submitting this mp3, and the file size limit through my host is 8 megs, which is double what any of the mp3's I've been submitting are--and thanks in advance for your help!):

Notice
•You must provide at least one recipient email address.
You must provide at least one recipient email address. Data Array:


Array
(
[name_input] => Bobby Higgins
[email_box] =>
[email]bobbybhiggins@bobbyhiggins.comThi[/email]s e-mail address is being protected from spambots. You need JavaScript enabled to view it.

[chrono_verification] => chpgA
[song_name_input] => Patronizing Sadness
[band_name_input] => Bobby Higgins Band
[city_name_input] => New York City, NY
[band_website_link_input] => http://www.bobbyhigginsband.com
[additional_info_input] => Thanks!
[file_upload] =>
[submit_button] => Submit
[f31089aaffacc9a7c771004d32c2e776] => 1
[view] => article
[option] => com_content
[chronoform] => cssonguploadform
[event] => submit
[Itemid] => 190
[id] => 33
)
Debug Data
1.PHP returned this error for file upload by : file_upload, PHP error is: 1
2.22
1.An email has been SENT successfully from (admin) [email]admin@admin.comThi[/email]s e-mail address is being protected from spambots. You need JavaScript enabled to view it. to
Email template:

Sorry, your submission attempt did not go through. It may be that you've exceeded the file size limit, or that you're using a file format we don't accept (acceptable fomats include mp3, mp4, MPEG4, WAV, m4p, AIFF, and wma). Please try again.
GreyHead 17 Jan, 2012
Hi Nochron,

PHP File Error 1 is

The uploaded file exceeds the upload_max_filesize directive in php.ini.


Looks as though you may have a file-size problem with the server settings. Can you check the actual setting on the Site Information page?

I also notice that the 'file_upload' entry in the data array is empty. I think that I'd still expect to see a file name in there. What settings do you have in the File Uploader?

Bob
Nochron 17 Jan, 2012
Hi Bob,

I'm not totally sure what you mean by "file uploader"--are you referring to the settings for the file upload box that I dragged over into the preview field? If so, here they are:

Field Name: file_upload
Field ID: file_upload
Field Class: empty
Field Title: empty
Label Text: Upload Your Song

If you're referring to another section, please let me know.

Yeah, I was thinking it could be a file size issue too and, sure enough, I went to System Information and found that upload_max_filesize was 2 M, and it needed to be like 5 or 6 M's (I'm assuming "M" means "megabyte" here). I added the following to my php5.ini file:

memory_limit = 50M
post_max_size = 10M
file_uploads = On
upload_max_filesize = 10M

Doing this has increased my upload_max_filesize to 10 M and I no longer get the PHP File Error 1, which is good. But I just tried submitting a song again, and the mp3 is still not showing up in the correct folder in my FTP manager. Here's the newest debugger info that I got on my latest submit action (any additional help you can give me would be great):

Array
(
[name_input] => Dale
[email_box] =>
[email]dale@funfun.comThi[/email]s e-mail address is being protected from spambots. You need JavaScript enabled to view it.

[chrono_verification] => hSBb9
[song_name_input] => Fun Fun
[band_name_input] => Fun Band
[city_name_input] => DC
[band_website_link_input] => <!-- w --><a class="postlink" href="http://www.funband.com">www.funband.com</a><!-- w -->
[additional_info_input] => This is our song.
[file_upload] => 20120117114849_thefunsong.mp3
[submit_button] => Submit
[7d23a8e372f7dad4e9994f7cc05f838d] => 1
[view] => article
[option] => com_content
[chronoform] => cssonguploadform
[event] => submit
[Itemid] => 190
[id] => 33
[_PLUGINS_] => Array
(
[upload_files] => Array
(
[file_upload] => Array
(
[name] => 20120117114849_thefunsong.mp3
[path] => /home/content/r/o/t/******/html/commuterscoot/components/com_chronoforms/uploads/cssonguploadform/20120117114849_thefunsong.mp3
[size] => 4779326
[link] => http://commuterscoot.com/components/com_chronoforms/uploads/cssonguploadform/20120117114849_thefunsong.mp3
)

)

)
Nochron 17 Jan, 2012
Nevermind! I got it! For some reason, chronoforms has been uploading the songs to a path I didn't designate. Oh well, that's OK for now. Thanks, Bob!!!
This topic is locked and no more replies can be posted.