|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
forcing file download for unknown types
we have built a nice application in flash.. one component of the app is that the user can upload files and in the flash application people can click on the icons and download the files
works fine in IE for all types. but in netscape for unknown file types it tried to open the file in the browser but just turns up a lot of wacky text. so, i thought of forcing download...this works except for unknown file types ie (RAR, PPS and XLS) - for these it asks if you want to download the name of the PHP file i have created which forces the download. so my question is...is there any way to get the names of these files into that dialogue box so that users will not get very confused (and they will) and think they are downloading a PHP file? thanks for all your help ![]() |
|
#2
|
||||
|
||||
|
Moved to Flash forum
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
|
#3
|
|||
|
|||
|
hmm. not sure why this was moved to flash.
its a flash application but the script is PHP. anyways. |
|
#4
|
|||
|
|||
|
to force down a file through php all you have to do is set the header information
PHP Code:
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > forcing file download for unknown types |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|