CFpdf and CFcontent this filepath and name of the file in the browser

Thanks for all the help over my questions CF....

I developed a download application for (connected to the secure module) users who download a PDF outside the root, moves and renames the file and then cfpdf protects the file with a password. Part of the download process inserts variables into a SQL database such as category, subcategory, file name, etc. Cffile move puts the file inside the root where I have a security framework. No problem with that.

I have a page of filled cfm (dynamically) with links to pdf files. These links contains the url handlers, passing the path and name. When a user clicks on a link, it is brought to an index.cfm with infrastructure security and in this page, I cfpdf link to the pdf file (and a password) and cfcontent to load the PDF in the browser. All this works fine, as it should.

However... Because cfpdf sets the path/name of the source and destination file and it transmits the cfcontent tag - the path and name are shown in the browser as well as naming address bar the same as the address http file download (although with underscores) if the user saves the file. Anyone with any sense can include the name and the actual filepath and go directly to the file in their browser. They would still have to enter a password to view the file, but I'd rather not have this filepath exposed like that.

Without having to create a copy of the original and rename the file, is there a way to change what is listed in the browser's address and the name of download file? At some point it may be a lot of PDFs downloaded and stored on this site. I prefer not to have 2 copies of every file on the server - the original and a reputation...

I googled and google and can't find an answer anywhere on this. Thanks to all the world pointing me in the right direction here.

EI

Finally, figured this out...

Given that the file exists on the server, there is no need to use cfpdf and cfcontent to serve the PDF file.

When the user click on the PDF link, the user is directed to a page that contains the security environment where there is a redirect to the PDF document on the server. I have the PDF password protected. The PDF file opens in the browser and, if, is saved with the name of the file only instead of the full url + file name.

Learn to work with CF and PDFs by cfdocument and cfpdf these last time has been a bit frustrating fun. (!) I guess it was too much trying to do the above, so I needed a direct link to the file itself.

Hope it helps someone else...

EI

Tags: ColdFusion

Similar Questions

  • Cannot open the file PDF as computer Mac tells me to accept the end user license agreement and to relaunch the browser... How can I do this? URGENT!

    Cannot open the file PDF as computer Mac tells me to accept the end user license agreement and to relaunch the browser... How can I do this? URGENT!

    With closed drive, open your Applications folder and double click (left) on the drive icon.

  • How can we separate "Icons and text" of the browser control buttons (back, forward, etc.) since the icons on the toolbar of the add-on?

    With us, it is not a problem. I don't know why it's different here at work - even editing, same settings (as far as I know).
    Windows Vista
    Firefox 7.0.1
    Status 4 Evar installed to activate the add-on bar in a status bar

    I have a NoScript module icon in the corner, which works very well. If I add a GreaseMonkey icon in the menu customize, "Icon and the text" is displayed for this icon as the icon and text browser controls (home, stop, etc.). Other icons the module show icon and the text (S4E, for example). NoScript is the only one I've found so far that collapses down to just an icon.

    I like this leads to the bar having a higher status (add-on). Basically what I want is for only the icon is displayed in the State (toolbar Add on), while keeping icons and text in the browser controls. My current solution is simply to remove the other icons of the add-on - it from the status bar (add-on), but which removes the ease of turning on/off and setting options.

    Please tell me if I can provide you with another thing and thanks for your help.

    Edit: I have some screenshots to show what I mean.
    desired behavior
    problem when the icon is added

    I tried, and while it does not remove the text, buttons retain their width, collapses don't not down icons. I was able to get exactly the effect I want to by changing the setting in the DOM, as stated in my post above, but which only lasted as long as the session and returned to the way it was before, when I restarted Firefox.

    After a few tries, I finally joined the userChrome following tweaks. This tweak sets the buttons didn't use any text, be limited to 20 pixels of width, and, if a drop-down list arrow is present, to hide that. Greasemonkey uses a drop-down list item separated so it must be hidden specifically.

    #addon-bar .toolbarbutton-text { display:none !important; }
    /*The following work for most of my icons except Greasemonkey*/
    #addon-bar .toolbarbutton-menu-dropmarker { display: none !important; }
    #addon-bar .toolbarbutton-1 { min-width:20px !important; }
    /*The following are specific to greasemonkey*/
    #addon-bar .toolbarbutton-menubutton-button { min-width:20px !important; }
    #greasemonkey-tbb > dropmarker {  display: none !important; }
    
  • WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    https://support.Mozilla.com/en-us/KB/granting+JavaScript+access+to+the+Clipboard

    This extension will help you implement the security policies for access to the Clipboard.

    Allow the extended Clipboard support:

    https://addons.Mozilla.org/en-us/Firefox/addon/852

  • Why my preview and preview in the browser looks so small? What I am doing wrong?

    Captura de pantalla 2014-12-02 a las 8.07.52 AM.pngCaptura de pantalla 2014-12-02 a las 8.08.02 AM.pngCaptura de pantalla 2014-12-02 a las 8.08.22 AM.png

    Seem to duplicate to your other thread: why my preview and preview in the browser looks so small? What am I doing wrong? Please check as suggested and let me know if this helps.

  • Element is FLUSH left, right and top of the browser window.

    OK, this should be an easy one for you guys. Can someone tell me how to do something (in this case a header bar) aligned to the left, right and top of the browser window? I tried many different ideas. Do not know where the margin or the padding is coming.

    Something with a fixed width will push right (always leaving the gap on the left) and bring up the scroll bars. I don't want to scroll bars. I want an elastic element that fits flush, without a space.

    Here is the code. I deleted everything except the header bar. View online at: http://www.upstartstudio.com/HS2.html .  Thank you!

    ---------

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > Untitled Document < /title >

    < style type = "text/css" >

    {#body}

    margin: 0px;

    padding: 0px;

    }

    #header {}

    background-color: #333;

    margin: 0px;

    padding: 0px;

    height: 100px;

    }

    < / style >

    < / head >

    < body >

    < div id = "header" > < / div >

    < / body >

    < / html >

    -Change

    {#body}

    margin: 0px;

    padding: 0px;

    }

    on this subject.

    {body

    margin: 0px;

    padding: 0px;

    }

    You have an ID selector when you should have a type selector (or a tag selector).

  • How can I launch Adobe Reader, accept the end-user agreement, quit and re-launch the browser?

    How can I launch Adobe Reader.accept the end user agreement, quit and re-launch the browser?

    Go to Launchpad, find Adobe Reader, double-click it.

  • Name of the browser, please help... very trivial

    Hi all

    This may seem a trivial question. But I tried to find the answer without result

    What is the formal name for the operating system of the RIM for Blackberry?

    also, what is the name of the browser?

    is there an API call for that? because all I can see is just "Browser" with name net_rim_bb_browser_daemon module

    Is there a reason for not giving the software a reasonable name?

    Thank you

    Dan

    http://en.Wikipedia.org/wiki/BlackBerry_OS

    (it's called OS)

    the browser is called a browser. or the blackberry browser. pretty fancy!

    You can use

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/RIM/BlackBerry/API/browser/browser.html

    to call the browser.

    or the applicationmanager with a handful of direct, if you want to...

  • My email has become inacccesable and now I noticed that my domain name, computer name, and name of the workstation are all identical! How can I solve it without making things worse?

    Here are the types of error messages that I receive (the first two of Event Manager; 2nd two unsuccessful attempts of Windows Live for you connect.)
    I changed the actual names of my logon, credentials and the computer names, domain and workstation; but the changed names are identical in the same way they are on my system, which is of same name.
    Windows XP Pro
    ===============================================
    Event type: Failure Audit
    Event source: security
    Event category: account login
    Event ID: 680
    Date: 11/05/2013
    Time: 20:16:40
    User: NT AUTHORITY\SYSTEM
    Computer: MrNixon
    Description:
    Logon attempt by: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
    Logon account: I have resignation
    The source workstation: MrNixon
    Error code: 0xC000006A
    Explanation
    Adopted a set of credentials for authentication on this computer system by a user or a remote process or by a local process.
    Success or failure appear in the message. If this event indicates success, then the present powers were valid. The error code is 0x0 for success messages. For the failure messages, the domain of the user in the header of the message displays NT AUTHORITY\SYSTEM, and a code NTStatus appears. This is a common list of failure status codes and their meanings.
    NT Status Code meaning
    0xC000006A that an incorrect password was supplied.

    ===============================================
    A TCP/IP error occurred while trying to send data to the server.
    Subject 'test '.
    Server: "smtpauth.earthlink.net.
    Windows Live Mail error ID: 0x800CCC13
    Protocol: SMTP
    Port: 587
    Secure (SSL): No.
    ------------------------------------------------------------------------------------------------
    Can't send or receive messages on behalf of Earthlink. Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems, or a long period of inactivity.
    Server response: + OK 2177 bytes
    Server: "pop.earthlink.net.
    Windows Live Mail error ID: 0x800CCC0F
    Protocol: POP3
    Port: 110
    Secure (SSL): No.
    ===============================================

    Event type: Failure Audit
    Event source: security
    Event category: opening/closing session
    Event ID: 529
    Date: 11/05/2013
    Time: 20:16:40
    User: NT AUTHORITY\SYSTEM
    Computer: MrNixon
    Description:
    Connection failure:
    Reason: Name of unknown user or bad password
    Username: I have resignation
    Domain: MrNixon

    Logon type: 2
    Logon process: Advapi
    Authentication package: negotiate
    Workstation name: MrNixon

    ====================
    Event type: Success Audit
    Event source: security
    Event category: opening/closing session
    Event ID: 528
    Date: 11/04/2013
    Time: 16:37:33
    User: MrNixon\I-resignation
    Computer: MrNixon

    Description:
    Logon successful:
    Username: I have resignation
    Domain: MrNixon

    Logon ID: (0x0, 0x106C2AFC)
    Logon type: 2
    Logon process: Advapi
    Authentication package: negotiate
    Workstation name: MrNixon
    Logon GUID: -.

    IS THERE SOMETHING VERY BAD ABOUT IT? :
    and how to fix it without making things worse?
    Workstation name: MrNixon
    Computer: MrNixon
    Domain: MrNixon
    User: MrNixon/I-resign

    PS: I can access my email on the rest of the web, so I'll see responses.

    Hi Chris,

    I suggest you to ask your question in the TechNet forums for assistance.

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

  • ADF mobile - app image and name in the iphone

    Hi all

    How to display the custom in the iphone app icon and also do where I put the name of the application that appears under the icon of the iphone app please?

    Thank you

    Hello

    the name is set in the adfmf configuration file - application.xml. For icons, choose

    Application--> Application--> Deployment Properties--> New--> ADF Mobile for iOS.  Expand the node 'ios Options' and you will see the settings app icons. Then, you deploy the application using the deployment file later.

    Frank

  • Sizes of Splash screen and names for the iPhone 6 and 6 more in the file descriptor xml files

    Is anyone know the sizes of screen and the file names for the iPhone 6 and 6 more (for the descriptor xml file)? Or current splash screens works on both devices?

    i.e. Default-Portrait.png *-768w x 1024 h

    Hello

    Here is the specification.

    iPhone 6

    Start screen

    750 x 1334

    72

    [email protected]

    Resources or resources/iphone

    iPhone 6 more landscape

    Start screen

    2208 x 1242

    72

    [email protected]

    Resources or resources/iphone

    iPhone 6 Plus portrait

    Start screen

    1242 x 2208

    72

    [email protected]

    Resources or resources/iphone

    You can find more info here - http://docs.appcelerator.com/titanium/3.0/#! / guide/Icons_and_Splash_Screens-section-290048 97_IconsandSplashScreens-Splashscreens

  • How can I determine the full path and name of the currently open file .ai?

    In Photoshop, right click the file name of the current open file shows an option 'Reveal in Explorer' so I know exactly where the file was opened from.

    In Lightroom, it is displayed in the metadata.

    New to illustrator, I looked in the options of the menu get charge can not see how to find this information.

    Would appreciate the help.

    agckent,

    Is it ALWAYS the case where the folder opened by "Save AS" is the file of the source code for the file that I am saving?

    I believe, with a reservation for the strange behaviour of the different OS versions: in the contrary case, the save option under would lead astray you.

    Edit: Hi Carlos.

  • Published Web site has components shift and disappear when the browser annotation scale.

    Hello world

    I am including a link to the published Web site, as well as including some screenshots of what looks like the question from my point of view. Just like a pre-emptive note: I had this problem before, and it was resolved by publishing a completely new site. I have saved the file under a new name, but also published the site under a new name and continue to encounter this problem. In addition, nothing is extended to the edge (for this thing of infinite width/length of browser).

    Thanks for any advice or assistance!

    http://argp07.BusinessCatalyst.com/index.html

    Y01.jpg

    ^ This is what the site looks like Muse.

    N01.jpeg

    ^ What the published site looks in my browser (Google Chrome) to 100%.

    The word 'Practice' is missing in the upper right of the page.

    Everything is well proportioned.

    N02.jpeg

    ^ What the published site looks like in my browser (Google Chrome) 90%.

    The word 'Practice' has re-emerged, but the vertical line disconnected (shifted down).

    Everything is well proportioned.

    N03.jpeg

    ^ What the published site looks like in my browser (Google Chrome) 80%.

    The word 'Practice' has disappeared again, as well as the vertical line.

    Everything is well proportioned.

    N04.jpeg

    ^ What the published site looks like in my browser (Google Chrome) 70%.

    The word 'Practice' has disappeared again, and the vertical line disconnected (shifted down).

    Text box at the bottom has turned into two lines of text.

    The layers of this provision include:

    Vertical line (rectangle of 1 px width)

    Horizontal line (rectangle of width 3 px)

    Text box group of practical architects

    White rectangle ON the bottom of the text box practice group of architects, UNDER the vertical and horizontal lines.

    The Accordion Panel

    Slide show

    Contact info text box

    I'm waiting for the line is defined as a footer in the properties of the Site (and/or the Page Properties) and "Sticky Footer" is so the footer sticks to the bottom of the browser window if the content of the page is shorter than the browser window.

    Your design, I hope that you want to disable "Sticky Footer" in the Site properties and disable "Item footer" to the line.

  • 39 of Firefox crashes on online videos, video goes out and then crashes the browser.

    This only happens with videos. When I watch a video in a few minutes the video area gets black. When I scroll upwards or downwards, it corrupts the whole Web page type. If I change taps, they get completely black, and then I can't do anything. This started happening about two months ago. I have re installed Firefox 39 and 38, but the problem persists. I even reinstalled Windows 7, because I thought it was a Virus, but it was without result. I really like using Firefox, so I hope that this problem has a solution.

    Strange graphical artifacts may indicate an incompatibility between Firefox and your software driver graphics card/chipset. To work around this, you could try disabling Firefox to use hardware acceleration:

    "3-bar" menu button (or tools) > Options > advanced

    In the mini ' General' tab, uncheck the box for "use hardware acceleration when available.

    This takes effect the next time you exit Firefox and start it again. Any difference?

    If the player uses the Flash, the Flash plugin has a similar option: press right-click and choose settings, then the first mini tab and uncheck the box to use hardware acceleration. More information in this article from Adobe technical support: http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues

    Any improvement?

    Because hardware acceleration improves the appearance of fonts and animations, you can check if graphics card/chipset driver updates are available for your system. This support article suggest safe places to do it: update your drivers graphics to use hardware acceleration and WebGL.

  • A lot of pop-up windows and sticking in the browser behavior

    Have weird ads via safari and chrome. A lot of popup displays in any browser and also a few become clickable buttons disabled and typing becomes almost impossible through any program that uses the web. When you are not running any browser, everything works perfectly fine.

    Recently, my brother was received by an irritating contextual advertising on his Mac. I guided through the steps to remove, so I'll repeat it here.

    Pop-up ads are advertisements that open above or below the window of your browser, in another tab, or as a graphic element in the current window. Sometimes they refuse to leave the same when you try to close.

    If these ads appear, DO NOT give type of important information about your Apple ID, credit cards, etc. If an ad does not close, it's almost certainly a scam after your money.

    To get rid of adware, begin by closing pop-ups that are open. If a window pop up on your Mac includes a checkbox "don't show alerts more since this Web page", check the box before you close the pop-up window. If a window closes (like in the case of my brother) close Safari on

    your Mac.

    Restart the web browser on your Mac that you hold down the SHIFT key. This prevents the reopening Safari automatically all the windows.

    Then, choose Preferences from the Safari menu, and then follow these steps:

    • Click on the security icon, and select "Block pop-up windows" to stop certain types of pop-ups.
    • Check the settings of your homepage and search engine. Sometimes adware changes these settings.
    • Click the general icon and make sure the homepage field is empty or contains the Web site you want.
    • Click on the search icon and make sure that the setting of search engine displays your favorite search engine. In some versions of Safari, this parameter is in the general pane.

    If you still have problems, or just want to check your Mac occasionally for adware - download app in sandbox "Dr. Safetry" in the App Store. It's free for domestic use clean adware, in addition to malware including trojans.

Maybe you are looking for

  • Disk space is full with 143 GB free space

    Hello I found a strange math calculations to Apple here. My disk space is filled with 143 GB free space. Here's the new math = 507 GB Apps + 119 movies GB 50 GB + 38 GB Audio 143 GB of space free Photos Plus 500 GB I use MacBook Pro (retina, 15 inch,

  • Open any new tab/link to the right of a selected tab?

    Hi allI am quite "new" to FF, because I'm trying to makes my main browser since that I was using until now became increasingly outdated and frustrating. I have installed a number of Add-ons already set it up for my taste, but I do not seem to crack t

  • Satellite 2450 S203: SMART HDD can fail - HARD drive change?

    Hello My Satellite 2450 S203 seems to run slow extremeley (20 minutes to start windows!). I get a warning in the Manager of Toshiba hard disk may fail soon. I guess I should do a new hard drive? Is it possible to fix it? If not, what type of replacem

  • Download iMovie for editing on another Mac

    Hello I use both Macs on two different sites. The first is on a DSL connection and the second on a 3G connection, with a data plan limited. The recent update to iMovie is 2 GB. I don't want to update on the 3G connection. How wan I download install i

  • T420 graphics update

    Hi guys,. I am interested in the development of 3D models and animation using Maya as well as delve into the design of games using Unity 3D. I already had licenses for the two programs installed on my T420. However, Maya tells me that my graphical ou