Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 14th, 2003, 11:10 AM
kinetic kinetic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Toronto
Posts: 58 kinetic User rank is Lance Corporal (50 - 100 Reputation Level)kinetic User rank is Lance Corporal (50 - 100 Reputation Level)kinetic User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 4 h 59 m 54 sec
Reputation Power: 5
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

Reply With Quote
  #2  
Old October 14th, 2003, 11:55 AM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,223 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 32 m 57 sec
Reputation Power: 174
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


Reply With Quote
  #3  
Old October 14th, 2003, 02:15 PM
kinetic kinetic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Toronto
Posts: 58 kinetic User rank is Lance Corporal (50 - 100 Reputation Level)kinetic User rank is Lance Corporal (50 - 100 Reputation Level)kinetic User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 4 h 59 m 54 sec
Reputation Power: 5
hmm. not sure why this was moved to flash.

its a flash application but the script is PHP.

anyways.

Reply With Quote
  #4  
Old October 19th, 2003, 06:25 AM
buggedcom buggedcom is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: london
Posts: 62 buggedcom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 32 m 37 sec
Reputation Power: 5
Send a message via AIM to buggedcom Send a message via Yahoo to buggedcom
to force down a file through php all you have to do is set the header information
PHP Code:
 header("Content-Type: image/jpeg");
header("Content-disposition: attachment; filename=$name");
header("Content-type: application/force-download");
header("Connection: close");
header("Expires: 0");
header ("Content-length:".filesize($jpg_id)); 

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > forcing file download for unknown types


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway