Forums

Problem with download action

jjspelman 08 Apr, 2012
I am not getting a download but getting an error when testing a pop up form created with v4:


Warning: mime_content_type() [function.mime-content-type]: Failed identify data 0:(null) in /home/abcpacka/public_html/administrator/components/com_chronoforms/form_actions/file_downloader/file_downloader.php on line 194
Data Array: 
Array
(
    [tmpl] => component
    [chronoform] => squeezebox1
    [event] => submit
    [option] => com_chronoforms
    [Itemid] => 
    [Name] => JJ Spelman
    [input_text_3] => jjspelman@j2studio.com
    [input_text_5] => J2 Studio
    [input_text_4] => 813-228-0358
    [input_checkbox_11] => 1
    [input_submit_8] => Get the Brochure
    [ac9aacf546b4d1cc6a0d54b1724e3d3a] => 1
)
Validation Errors: 
Array
(
)
Thank you, JJ Spelman, for taking the time to contact us. We will be in touch immediately. Debug Data
email
1
Result
An email has been SENT successfully from (ABC)webmaster@abcpackagingdev.com to jjspelman@j2studio.com
Body
Please register below to receive M206.pdf to your email address.

* All fields are required.

Name	 {input_text_0}
Email	 jjspelman@j2studio.com
Company	 J2 Studio
Phone	 813-228-0358
Please contact me	 1


Submitted by 173.171.27.225
Attachments
array ( )
file_downloader
The file path doesn't exist: http://www.abcpackagingdev.com/images/brochures/abc-rev.pdf


---------------

The debugger says file path does not exist, but when using that address in the browser it does. Any thoughts?

I also do not like having my site background image inside the pop up iframe. I tried setting a style to get rid of it but no luck.
jjspelman 08 Apr, 2012
It seems I had to use the absolute, absolute path. Before upgrading to Joomla 2.5.4 I used the "absolute" path using the url - now I am using the absolute path i.e.; /home/account_name/public_html/images/downloads/, and it seems to work.😀

Still having issues getting to the thank you message after that though. max suggested adding another event to cue a download link, but not sure how to do this.
jjspelman 08 Apr, 2012
P.S.

I like the changes made in the interface in v4 RC3.3, had to log out and then back in to see them all but they look great!
GreyHead 08 Apr, 2012
Hi jjspelman,

This looks like the difference between 'paths' used internally by the server to identify the folders where files are located and 'URL's used on the internet. The two are often very similar but it's important to get the right one for the particular code you are writing.

Bob
This topic is locked and no more replies can be posted.