Prompt To Download File when not a pdf or doc

Different files are uploaded through one of my applications. The problem is when clients want to view the file, if its not a .pdf or .doc, .docx, its not rendered through the browser and throws an error.
Is there a way I could force a download prompt to save the file when the file extension is not a pdf or doc?
As of now they are viewing the file through <a class="note" href="#qry.drawing#" target="_blank">View</a>
Thanks

Most probably reason the file is got corrupt due to virus. For this I would like to suggest you a third party tool which will help you to recover your corrupted PDF file data and it will export into a fresh PDF file. Tool Name:
Recovery Toolbox for PDF.

Similar Messages

  • Safari can't download file when trying to download movies

    Safari responds with "safari can't download file' when I use download app to download movies . I don't have issues downloading apps or searching net.  Would be grateful for assistance.

    You can't download something from Safari to your iPad.  iPad is a closed system, and not subject to virus intrusion.  Now, if for example you have a Kindle app and you go directly to Kindle in Safari and using your ID you buy a book, the book will download to your Kindle account, which you could then open your kindle App on your iPad and read the book you downloaded in your App.  But you can't go into Safari and just download a book or a movie directly to your iPad from the net........

  • AIR Badge + RewriteRule fails - Downloaded file is not an air file

    Hi everyone!
    I'm not entirely sure my problem comes from RewriteRule but I've searched this forum for topics on corrupted AIR files and the Install Badge and tried almost every possible tip with no luck so I thought maybe my special issue comes from it...
    Here we go:
    I have a server-side script that builds AIR apps which are supposed to be installed (via an Install Badge). Those AIR apps are not stored at a public URL (for security reasons) but read (via PHP) when a specific URL is called. Let me give you an example (with fake paths) :
    The server-side built AIR app is store at /srv/data/air/myApp.air
    A RewriteRule redirects calls to http://www.my-server.com/air/999.air to http://www.my-server.com/air.php?id=999
    The air.php uses the GET id to read the AIR file :
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private", false);
    header("Content-Type: $mimeType");
    header("Content-Disposition: attachment; filename=$name;" );
    header("Content-Length: ".filesize($path));
    readfile($path);
    With $mimeType="application/vnd.adobe.air-application-installer-package+zip" and $name="999.air"...
    When accessing the rewritten URL directly with a browser, everything is fine: the AIR file can be downloaded and installed as expected.
    But! When using an Install Badge linking to that URL, I get the nasty "The application could not be installed because the AIR file is damaged" message...
    And here's what's stored in .airappinstall.log:
    Starting app install of http://(...)/9889.air
    UI SWF load is complete
    UI initialized
    Downloading file to C:\Documents and Settings\Quentin\Local Settings\Temp\fla19D.tmp
    Received HTTP Response Status event
    Response URL is http://(...)/9889.air
    Downloaded file is not an air file.
    starting cleanup of temporary files
    application installer exiting
    Hum... And I'm stuck.
    Thoughts?
    I have multiple Install Badges in the same page, do you think this can break things?
    I've try adding the AddType instruction in a .htaccess file but it didn't change a thing...
    Thanks in advance!

    OK, I've got news.
    Bad news.
    In fact I realized the appurl set in the Install badge is (obviously) not called directly but by a script located at http://adobe.com/apollo... So your my session is not available in the script that is called and that reads the actual AIR file. So I can't check wether the user requiring the file has the right to. At least, not the way I intended to do it...
    I will keep you updated if I find something!

  • Service stack update 2871777 to enable installation of RDP Connection Broker on 2012 domain controller - downloaded file will not execute.

    service stack update 2871777 to enable installation of RDP Connection Broker on 2012 domain controller - downloaded file will not execute.
    Downloaded x64 update for server 2012 R2 (KB2871777) -  file downloaded is named Windows8-RT-KB2871777-x64.msu
    When downloaded to server 2012 R2, upon launching the files, the message reads "Windows Update Standalone Installer"
    "The update is not applicable t your computer"
    If this is the wrong update please point me to the correct one - I cannot find another instance of this update anywhere.
    I am unable to remove the active directory from this server, so I need to use this fix if at all possible, in order to use RDP.
    I have tried every workaround I can find.  The goal is to have remote users access RDP to run a remote session and access apps and files
    on the server.  we have Hyper-V enabled and have successfully deployed 10 RDP licenses to the license server) also on the PDC.
    I read one post that suggested installing RD Connection Broker in one instance of a VM and AD DS in the other - not sure if that means we remove
    AD DS from physical server.  We only have one 2012 server (plus a server 2008 with Ad DS) and  a server 2003.  Trying to make this all work so we can deploy 10 remote desktop users.

    KB2871777 appears to be for 2012 (non R2) only.
     As to the other problem maybe this one helps.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/bbf47aa2-8ae5-4f22-9827-afee5a11417a/install-remote-desktop-services-failed-on-windows-2012-server?forum=winserverTS
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • My half downloaded file is not shown in the list of downloads

    my half downloaded file is not seen the download box for further downloads but its half part is still in the folder of download.

    Is your portlet a mobile portlet ?
    if yes you can specify that it is not a "mobile only" portlet.

  • How can my laptop access the downloaded files like mp3 and pdf documents which are in my iphone 4G?

    how can my laptop access the downloaded files like mp3 and pdf documents which are in my iphone?

    Yes you will need to NAT at some point to go from private to public address space. Here is a basic configuration if you are interested:
    interface F8
    ip nat inside
    interface G0
    ip nat outside
    ip access-list standard NAT
     permit 192.168.11.0 0.0.0.255
    ip nat inside source list NAT interface G0 overload

  • UCCX 8.0 CAD: Can you disable auto update? Error: "unable to download file" Could not open request.

    I have a UCCX 8.0 (2) Installed.
    Users here have limited access via proxy. Now everytime i try to run the CAD or CSD, i get the error:
    "unable to download file" Could not open request.
    It seems to want to install or check for an update.
    The work around i have found is to go to the CAD directory and change the update.exe filename
    C:\Program Files (x86)\Common Files\CAD\bin\update.exe
    i dont want to have to do this for every user as i possibly want the update.
    Is there a way to allow or bypass proxy on CAD?
    Regards
    J

    I had this problem before - to resolve it I disabled the proxy in internet explorer settings.
    You'll need to make sure the CAD version matches your UCCX server version. Otherwise you may run in to issues.
    Brian

  • Keep getting msg safari unable to download file when trying to view MP4 videos?

    I keep receiving message 'safari unable to download file' when trying to view MP4 videos. Does anyone know why this could be? Only a recent issue. Thanks

    Try another browser as a test.
    Firefox

  • When I try to play some of the songs in my itunes library, I get a prompt saying the file could not be used.  When I hit the "locate" button, it still won't locate the file.  I didn't delete any of these tracks and there is no common link between them.

    When I try to play some of the songs in my itunes library, I get a prompt saying the file cannot be used.  When I hit the locate button, the file cannot be found.  I didn't delete any songs/files and there is no common link between the missing songs.

    Hello there, Paso Kid.
    The following Knowledge Base articles provide some assistance with locating content in your iTunes Library:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    and
    Where are my iTunes files located?
    http://support.apple.com/kb/HT1391
    If you have already reviewed those steps and still cannot find the songs you purchased from iTunes, delete the songs and download them again using the information in this article:
    iTunes 11 for Windows: Download previous purchases from the iTunes Store
    http://support.apple.com/kb/PH12491
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Help! my safarai did not auto download files when clicked...

    Hey guys...
    i have some problems with my safari and i need your generous help!
    recently, i cant download files from download links in any website including apple.com
    lets say that i want to download safari dmg from apple website...when i click the DOWNLOAD NOW button, it seems like nothing happened and this happen for all of the websites
    but i can download the files when i right click the link and select the "download linked file as"
    please help me...
    Thanks for your help in advance

    Hi,
    If your profile is correct you need to update your system software to 10.5.8. Go here:
    http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate
    After the installation, restart your Mac, launch Safari and see if you can download files. If not...
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem.
    http://support.apple.com/kb/TS1594
    And make sure Safari is not running in Rosetta. Right or control click the Safari icon in your Applications folder then click Get Info. In the Get Info window click the black disclosure triangle so it faces down. Where you see Open using Rosetta... make sure that is NOT selected.
    Go to ~/Library/Cookies and move the Cookies.plist file to the Trash. Relaunch Safari.
    If you still have problems downloading from the Apple site, Open Keychain Access. (Applications/Utilities) Find the "Safari AutoFill" item. Delete it. Relaunch Safari. Next time it asks for authorization, click "Always Allow".
    Make sure the startup disk has enough free disk space. Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. *Make sure you always have a minimum of 10% to 15% free disk space at all times.*
    Carolyn

  • Adobe Acrobat Standard XI: Why prompted to save file when nothing changed?

    I have Adobe Acrobat Standard as the default PDF reader. I PDF printed a page from a website. Then I clicked to open the PDF. After I finished viewing the file, I closed the window. Adobe Acrobat prompts me to save: Yes, No, Cancel. Since I changed absolutly nothing, I am puzzled why Adobe Acrobat's save dialog thinks there are changes and askes me whether I want to save the changes.
    I have repeated opening and closing the PDFseveral times.
    Then, I tried opening and closing another PDF, and it just closes without prompting to save.
    Why do I get different behaviors on different PDFs? And can I control the behavior to get or not get the save prompt when there are no changes?

    I like that Adobe Acrobat will correct problems, then ask you whether to save.
    In the case of this file, I click Yes to save. Then the next time I open and close the file, it asks again, and I click Yes to save. Adobe Acrobat always does it with this file.
    With another file, Adobe Acrobat (AA) does not prompt, unless I change the file.
    I don't know which difference matters. AA created both PDFs. The problem file was a print from a webpage. The good file (that closes without prompting) was created from a scanner.
    I tried PDF printing this page (i.e. the page on which I am composing my response to your message). Then, I opened and closed the PDF, and was prompted to save.
    Seems like if AA corrected the problem, and I saved, AA should not have to correct the problem again (if that is what's happening). Also, if AA made the PDF in the first place, there should be no problems with the PDFto correct.
    You know what? I just tried printing another website and same prompting everytime I close.
    I've been using Chrome. I tried printing with Internet Explorer, and no problem of prompting when closing.
    Hmm. I just tried PDF printing from FireFox. No problem here either.
    Well, Now I suppose I just leave it for Google and Adobe to work out, if they care to.
    I just tried opening the problem file in AA and PDF printing from it. This seems to have cleaned the file. The second PDF file has no problem opening and closing.
    I've got an idea. I just went to the address bar in Chrome and typed "Chrome://plugins". That's the only way I know to get to the Chrome plugins. I saw that I have BOTH the Chrome built-in PDF Reader  AND the Adobe Create plugins enabled. I disabled the Chrome PDF Reader so ONLY the Adobe Create plugin is enabled.
    I printed this webpage again (the webpage you are reading). This time, there was no problem opening and closing the PDF, no prompts to save.
    However, now online PDFs will not display in Chrome. Instead, Chrome offers to download the PDF.
    I went back to the plugins and found Adobe Reader disabled. I enabled Adobe Reader so now I have both Adobe Reader and Adobe Create plugins enabled.
    The problem came back.
    I don't know who would fix this, Adobe or Chrome, but would be nice to "have my cake and eat it, too" meaning, not have to muck with the plugins to AA-print clean PDFs from Chrome, and then muck again with the plugins to display PDFs in Chrome.
    I tried FireFox. Displays PDFs, and AA-prints PDFs that are clean (i.e. no prompt on closing from AA).
    Well, that is enough (maybe more than enough) from me on this. I'll monitor this discussion in case anyone comments.

  • After downloading a file, the downloads window pops up, but is always empty. the downloaded files are not visible.

    After downloading a file, the Downloads window pops up but it is always empty. The files downloaded are not visible on this window. In order to access them, they must be sought out via windows explorer. Any ideas? Thanks.

    Be sure Options > Privacy > "Remember download history" is checked.
    *[https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    If you want to retain download history, do not clear Download History when using Clear Recent History or "Clear history when Firefox closes" > Settings
    *[https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    *Clear history when Firefox closes: [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Can not open .pdf or .doc files in mail

    Every time I receive an email with a pdf or .doc file attached I can never open it as I get a message telling me that the file was not recognised or that the file is invalid. Even if I select to open using Adobe for the pdf I get the same.
    Any help gratefully received. I've always had this problem and get round it by viewing these emails online instead. But it's not as convenient of course.

    G'day jbglass,
    I had the same problem, getting the same error message etc. I solved the problem by going to Google Chrome and using that to download the file ( a pdf brochure in my case).  That worked OK.  Hope this helps.
    fitzlefrog

  • "Download Files"procedure not working in duplicate app/shows page not found

    Hello,
    I have created an application using the "Download files" procedure described in "How to Upload and Download Files in an Application" chapter of the APEX "Advanced Tutorials." It works just fine on the one server, however, when I exported the application and data from the working copy and imported it in APEX running from my laptop, I could upload files and generate a report with a link to click and download the files again but when I clicked on those links, I would get a "Page Not Found" error. It looks like it might not be going to the procedure and instead goes to a page like the following: "http://127.0.0.1:8080/apex/DBAPORTAL.download_image?p_id=1868612316946460." On the working copy on the other server, when the download link is clicked, you will get a dialog box asking if you would like to open or save the file.
    Could anybody tell me why the procedure is not being called and goes to a non existent url while the origonal application works just fine on the other server?
    I have granted APEX_PUBLIC_USER execute permissions to the procedure. I am wondering if there are any other permissions that I should be granting. Should I grant PUBLIC or ANONOMUSE permissions to use the "download_image" procedure?
    I have forgotten to mention that on my laptop I am using database 11.1 and on the server I believe the database is 10g.
    Hope to get an answer to this issue. I've asked a couple people already and they are stumped.
    Thank you in advance.
    Linda

    Scott,
    I have tried to follow the instructions commented out "RETURN FALSE;" and added procedure 'DOWNLOAD_IMAGE' to wwv_flow_epg_include_local.sql. But I'm confused. Should I be changing file "wwv_flow_epg_include_local.sql' or 'wwv_flow_epg_include_mod_local" package?
    When I run "ALTER SESSION SET DBAPORTAL FLOWS_030100;" in sqlplus, how do I know what FLOWS_XXX I have? Is it FLOWS_030100 or FLOWS_030000? I have database 11.1 installed. What version of APEX do I have with this database? How do I find out?
    Do I need to be in a perticular directory before I run the alter script? If so what folder?
    How do I "Compile the function wwv_flow_epg_include_local.sql.?"
    Needless to say, when I added the procedure to the file, and when I tried to alter it, I got the following error:
    SQL> ALTER SESSION SET DBAPORTAL FLOWS_030100;
    ALTER SESSION SET DBAPORTAL FLOWS_030100
    ERROR at line 1:
    ORA-02248: invalid option for ALTER SESSION
    Please tell me what I am doing wrong.
    Thanks
    Linda

  • Log files when creating a pdf from PDFMaker Office COM addin

    Hello,
    I just bought Acrobat Standard to create pdfs on Word 2013.
    I'm making a catalog using this two softwares, Word 2013 (latest version with all updates) and Acrobat XI (latest version, 11.0.06). Unfortunately things are not working as I wish, and on some documents almost at the end of the transformation process, it can't save the pdf file or it gives a major word error, exiting word.
    When the transformation process is running/ending, are there any logs created to see what happens in case of errors?? If yes, where can I look up for them??

    Sorry, but when the pdf is created or not (like when happens on this particulary case), I don't see any logs on the same folder. 
    Let me try to explain my problem in depth.  I have a docx, a big file with 200 pages. It's created with Word 2013 but using the 2010 docx format for compatibility reasons. I beggun using the Word x64 but now I'm using the x86 and the problem happens on both and in the same ways. 
    First. If I try to convert the whole document, most of the times (I'd say 70%) the pdf doesn't get created or the rest of the times (30%) It causes a crash to Word with a dll error. Normally it halts (whether it doesn't create the pdf of halts word) at a certain page, after repaginanting all pages and when it says that is creating page nº X.
    I already pinpoint, more or less, where the error is. The error is located on the first pages, more exactly on the index pages. It's not a index created by the Word, it is a set of pages that I manually built with a grid of pictures with each one having a hyperlink to a designated bookmark to a desire page on the document. If I "pdfmaker" the rest of the whole document (without the index pages) I can get the pdf created.
    So, the index is where the problem resides. On this thread, http://forums.adobe.com/message/5816803#5816803 , you will see that I had a another problem due to the method used on Word 2003 about hyperlink of images that no longer works (when exporting to pdf) on the latests words versions, at least on the Word 2013. The pdf file was created with no problem, but on the pdf the hyperlinks were not created due to something that M$ has resolved to change between Word 2003 and Word 2007. I found a way to fix that (listed on that thread link). But as I like to invent, on the Field box, on the field options, for this time, I decided to choose the option "Data not stored with the document". That is what is breaking the pdf conversion. Too bad. Now I have to clear the index all the way and start again from the beggining but without that option. I already remake 3 pages and after the conversion the pdf is created. I have to finish the index redone once again and then create the full pdf document to see if any of those errors/halts happen again.
    I just wish to see a adobe log to see what type of error this bug produces so it would be possible to adobe crush the bug
    P.S. - Sorry if I was too confusiong for anyone to understand what I'm trying to say here
    Message was edited by: Onesolo

Maybe you are looking for

  • What apps are available for ipod touch 1st generation

    what apps are available for 1st generation ipod touch

  • Reducing page size of a pdf

    I have created a pdf from a multiple page A4 Word doc supplied to me. Is there a simple way to scale the page size from A4 to a smaller size and saving as a new pdf?

  • Webcam

    Can anyone please please tell me how to make the built-in webcam work? A lot of groups have webcam capabilities and I can't get mine to work with any of them. Could it be a Network/Preferences or Firewire thing maybe? I've set-up .Mac, turned on iCha

  • Call_form from menu when in enter_query mode

    I was wondering if headstart has a setting that allows the user to open another form from the menu even when it is in enter_query mode. I can see in the libraries that when a form is closed this mode is checked and exit_form is called twice when the

  • Error in script copying

    Hi All, I am copying a script form from 000 to 500,then i am getting a message 'Object can only be created in sap pacakge' form name i am using is ' QM_8D_REPORT_SND' any body help pls... Reagrds, Sai prasad