|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm having problems with cfcontent and mac users.
I have created an image lightbox where users can add to and then download their lightbox as a zip file. This works fine if the end user has a pc, but will not work correctly if user has a mac. Have tried various mimetypes, but a mac will not name the download file to *.zip, it defaults to the name of the template zipfile.cfm. sometimes it downloads the actual cfm file, sometimes it downloads the zip file, what I dont want to do is ask the user to rename the file type to .zip. what i wish to happen is that the .zip file is downloaded and given the correct name, (in this case new_download.zip) any ideas would be appreciated |
|
#2
|
|||
|
|||
|
You should be able to do it with something like this, but unfortunately each combination of OS and browser has the potential to handle it differently.
<cfheader name="Content-disposition" value="attachment; filename=myfile.zip"> <cfcontent type="application/zip" reset="No">
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
cfcontent and macs
thanks for your response kiteless.
have tried your suggestion along with changing attachment types unknown & inline, and different mimetypes including unknown, but nothing works. i'll just keep trying, one day i may get lucky...... thanks again.... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > cfcontent and macs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|