Prevent same file name from being downloaded -- Don't put (1) or (2), etc before file extension

Let's say I save a file to a download directory -- for example, "Cat Video.mp4".
Then, let's say later on I find another video that I'm not sure if I've already downloaded it yet, so I try again. By default, what happens if that "Cat Video.mp4" already exists in the folder, FireFox will download the file as a different one, but this time as "Cat Video(1).mp4". In my case, I want to either NOT download the video or PROMPT me to overwrite. I don't want to automatically just download the same video/file and append (1), (2), etc. at the end of it.
Is there a setting in FireFox or a plug in / add in that will allow for this functionality?
Thanks!

There are multiple download managing extensions. I've never used any of them, but it might be worth a try. Here's one I found, but there's tons more: http://www.downthemall.net/

Similar Messages

  • Need to extract only file name from path.........

    Hi All,
    I have a parameter.This calls the function
    "CALL FUNCTION 'F4_FILENAME' to get the file from C drive.
    After selecting the file the path is displayed in the Parameter field.
    My problem is I need to extract only file name from the path.Please advice.
    Example : Prameter  id    C:\folder\file.xls  
    I shd extract only file.xls from the path.Please advice.

    Hi,
    Use the below logic:
    data: begin of itab,
               val    type  char20,
            end of itab.
    SPLIT  l_f_path  AT  '\'  INTO  TABLE itab.
    The last record of the internal table holds the file name.
    describe table itab lines l_f_lines.
    read itab index l_f_lines.
    l_f_filaname = itab-val.
    Hope this helps u.

  • Same file name from sender to receiver file adapter with out using UDF

    Hi All,
    I am working on FILE TO FILE. My requirement is same file name from sender to receiver file adapter. Is it possible to do using only Adapter Specific message properties?  i mean with out using UDF.
    Thanks
    Karthik

    Hi,
    >>>Is it possible to do using only Adapter Specific message properties?
    yes
    just enable Adapter Specific message properties in sender and receiver channel for file name
    and you're done
    Regards,
    Michal Krawczyk

  • How to protect my jar file from being downloaded

    How can i protect my jar file from being downloaded by users by accessing it through the web site.
    Now everybody can just type the url www.mysite.com/applets/myApplet.jar
    And download it to his computer.
    I realize that anybody who really wants to download it he will get it anyway, but I want to make it harder.
    thanks in advance

    Your browser has to download the jar file if it's going to run the applet. That's applets work. The browser downloads the classes and then runs them locally.
    I suppose if you wanted to make something to make it difficult for users to explicitly download the jar, you could set some kind of permission flag when the HTML is page is rendered, and then unset it some amount of time (10 seconds?) later, and then only let the user download the jar when the flag is set. But this would be fragile and irritating and unhelpful. It would probably break more than you'd like and not prevent download very much (it wouldn't take long to figure out what was happening), and besides nobody is ever going to try to steal your code.

  • Preventing Photos from being downloaded

    I am looking for a way of protecting my photos from being downloaded off my web site. Does anyone have any ideas?
    Cheers

    Hi Ken
    See this previous thread, http://discussions.apple.com/thread.jspa?messageID=1763218&#1763218
    It doesn't really look to good......
    Will
    1GHz G4, 15" PowerBook, Airport Network, 1G iPod Mini   Mac OS X (10.4.5)   Updated - Get Started with iWeb (WillG4PB.com)

  • How do I delete files permanently from the download queue?

    I have a bunch of TV shows and songs that are in my download queue because I accidentally clicked "download" twice.  Every time I want to download or import something else, all 47 of these items come up and attempt to start downloading.  Each time I delete them all from the queue, they come back to haunt me and begin downloading again the next time I want to download something.  Some of them have been trying to download since 2008.  How do I permanently prevent them from downloading to my computer?

    In addition to what Drew wrote, remember the Mac has a data fork and a resource fork.
    Here is an old thread but a nice recap by Dr. Smoke
    ._Files
    Note that the ._file files you note are the resource forks of Mac files you copied to the drive from your Mac, and these are only visible when you use the Flash drive on a PC. These are normal and indicate the Flash drive is already formatted for Windows.
    When you copy or save a file from a Mac OS X system to a Windows shared volume or a Windows-formatted disk, the Mac creates two files: the data fork (xxx) and the resource fork (._xxx). This is called Apple Double Format and is normal. The resource fork contains additional data about the file that is exclusive to the Mac that cannot be saved otherwise on Windows-formatted disks. This is new with Mac OS X, as documented in Mac OS X: Apple Double Format Creates File Name With the Prefix '._'.
    The resource fork files (._xxx) are necessary if you want to copy the file back to the Mac and retain the metadata. The resource forks of files are invisible when they are used on the Mac: the Mac OS Extended file system (aka HFS Plus or HFS+) uses forked files, with a file having both data and resource forks.
    You can delete the resource forks on the Windows disk if and only if you don't care about losing the resource fork information should you copy them back to the Mac, such as comments, image preview icon, etc. Some Mac applications use the resource fork data, so deleting the resource fork can be problematic if you copy the file back to the Mac. Likewise moving the file while not also moving its associated resource fork when using the data on a PC can result in problems when using some files again on the Mac.
    You can't prevent the resource forks from being created if you copy or save files from the Mac to the Windows share or Windows-formatted disk via Finder.

  • Photoshop CC 2014 - "Could not complete your request because something prevented the text engine from being initialised".

    This problem has just started, only with CC 2014. It doesn't happen with CC or CS6.
    When I open a particular layered file, then Duplicate it, then close the original Master file I get the "text engine" warning box when I try to enter text in the copy file.
    If I enter text in the original Master file - no problem.
    If the Master file is still open and I try to enter text in the copy file  - no problem.
    I've validated all my fonts in Font Book, deleting all the duplicates and one corrupt font. No change to problem.
    I've gone to User/Library/Application Support/Adobe/Adobe Photoshop CC2014/ and trashed the CT Font Cache folder. No change to problem.
    I've run PS Update.
    Running OS 10.9.3.
    Any suggestions?

    I'm having the same issue on my work computer. I found this info in Adobe's help section.
    Issue
    When you use the Type Tool, you receive the following error:
    "Could not complete your request because something prevented the text ending from being initialized."
    To the top 
    Solution
    Close Photoshop, clear the font cache, and restart.
    Exit Photoshop.
    In Windows Explorer, navigate to the Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CC/CT Font Cache folder.
    Move these two files to the Recycle Bin:
    AdobeFnt_CMaps.lst
    AdobeFnt_OSFonts.lst
    Empty the Recycle Bin.
    Restart Photoshop.
    To the top 
    Additional information
    This issue can occur after you uninstall and reinstall Photoshop several times.
    Text Engine error using type tool in Photoshop CC | Windows 8

  • How to get the target file name from an URL?

    Hi there,
    I am trying to download data from an URL and save the content in a file that have the same name as the file on the server. In some way, what I want to do is pretty similar to what you can do when you do a right click on a link in Internet Explorer (or any other web browser) and choose "save target as".
    If the URL is a direct link to the file (for example: http://java.sun.com/images/e8_java_logo_red.jpg ), I do not have any problem:
    URL url = new URL("http://java.sun.com/images/e8_java_logo_red.jpg");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Everything is fine, the file name I get is "e8_java_logo_red.jpg", which is what I expect to get.
    However, if the URL is an indirect link to the file (for example: http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719 , which link to a file named JavaSetup6u18-rv.exe ), the similar code return AutoDL?BundleId=37719 as file name, when I would like to have JavaSetup6u18-rv.exe .
    URL url = new URL("http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Do you know how I can do that.
    Thanks for your help
    // JB
    Edited by: jb-from-sydney on Feb 9, 2010 10:37 PM

    Thanks for your answer.
    By following your idea, I found out that one of the header ( content-disposition ) can contain the name to be used if the file is downloaded. Here is the full code that allow you to download locally a file on the Internet:
          * Download locally a file from a given URL.
          * @param url - the url.
          * @param destinationFolder - The destination folder.
          * @return the file
          * @throws IOException Signals that an I/O exception has occurred.
         public static final File downloadFile(URL url, File destinationFolder) throws IOException {
              URLConnection urlC = url.openConnection();
              InputStream is = urlC.getInputStream();
              FileOutputStream fos = null;
              String fileName = getFileName(urlC);
              destinationFolder.mkdirs();
              File localFile = new File(destinationFolder, fileName);
              fos = new FileOutputStream(localFile);
              try {
                   byte[] buf = new byte[1024];
                   int i = 0;
                   while ((i = is.read(buf)) != -1) {
                        fos.write(buf, 0, i);
              } finally {
                   if (is != null)
                        is.close();
                   if (fos != null)
                        fos.close();
              return localFile;
          * Returns the file name associated to an url connection.<br />
          * The result is not a path but just a file name.
          * @param urlC - the url connection
          * @return the file name
          * @throws IOException Signals that an I/O exception has occurred.
         private static final String getFileName(URLConnection urlC) throws IOException {
              String fileName = null;
              String contentDisposition = urlC.getHeaderField("content-disposition");
              if (contentDisposition != null) {
                   fileName = extractFileNameFromContentDisposition(contentDisposition);
              // if the file name cannot be extracted from the content-disposition
              // header, using the url.getFilename() method
              if (fileName == null) {
                   StringTokenizer st = new StringTokenizer(urlC.getURL().getFile(), "/");
                   while (st.hasMoreTokens())
                        fileName = st.nextToken();
              return fileName;
          * Extract the file name from the content disposition header.
          * <p>
          * See <a
          * href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html">http:
          * //www.w3.org/Protocols/rfc2616/rfc2616-sec19.html</a> for detailled
          * information regarding the headers in HTML.
          * @param contentDisposition - the content-disposition header. Cannot be
          *            <code>null>/code>.
          * @return the file name, or <code>null</code> if the content-disposition
          *         header does not contain the filename attribute.
         private static final String extractFileNameFromContentDisposition(
                   String contentDisposition) {
              String[] attributes = contentDisposition.split(";");
              for (String a : attributes) {
                   if (a.toLowerCase().contains("filename")) {
                        // The attribute is the file name. The filename is between
                        // quotes.
                        return a.substring(a.indexOf('\"') + 1, a.lastIndexOf('\"'));
              // not found
              return null;
         }

  • How do I protect an image from being downloaded?

    I want to be in a position to prevent images from being downloaded from a muse site. Is this possible?
    David

    Widgets are available from a couple different sources that disable right-click mouse functions on a web page. That prevents someone from right clicking an image and choosing "save image" options. Unfortunately nothing can prevent someone from grabbing a web page image using other methods, like taking screen shots or hacking the web browser's cache.
    Other alternatives:
    • Watermark your images using visible and/or invisible methods.
    • Limit the resolution and quality levels of the images you upload.
    • Bake other visual elements or user interface elements into the images, making visitor saved images either incomplete or just screwed up. They don't get a pristine image to try selling off to some stock photography company.

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • File-name not being fetched in a multi-message mapping by Dynamic Conf

    In a scenario, i have a BPM which has a transformation step which contains a mutimapping ...means 2 messages mapped to 1 messgaes, here in the mapping i m using an UDF and written code to extract the file name from dynamic configuration.....
    the problem is ...the same BPM contains another transformation step which contains a message mapping (which is not multi mapping), and here the code (UDF) works to fetch the file name...
    the code is all correct....and it looks like
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String sourceFileName = conf.get(key);
    if (sourceFileName == null ){
    sourceFileName = "ErrorFile.xml";}
    return sourceFileName;

    Hi,
    The scenario I am trying to test is a multi mapping scenario where I am trying to split one source message and create two target messages by using two different receiver interfaces, one for each message.
    I am on PI 7.1 and when I test message mapping and operation mapping using the payload from SXMB_MONI, it is successful. Whereas when I test the scenario end to end I am getting the following error messages:
    Operation Mapping
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Name
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Namespace
    http://accenture.com/1:N_multi-mapping
    Runtime error
    Split mapping created no messages
    Start tag ns0:Messages Add raw attribute xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" Start tag ns0:Message1 Close tag ns0:Message1 Start tag ns0:Message2 Close tag ns0:Message2 Close tag ns0:Messages
    Could someone please help
    Cheers,
    S

  • Error: prevented the text engine from being initialized

    I am getting the following error when attempting to use the text tool with my photoshop (12.0) - windows 7.
    "could not complete your request because something prevented the text engine from being initialized"
    I've attempted to follow some posts from others to fix without success.
    There are two fonts in my fonts folder that are shortcuts - and the fonts don't exist in the folder. Also, I can't delete the shortcut font from the fonts folder.
    (I'm posting this now... and might have a solution. Just in case, I want this conversation started.)
    TIA,
    Greg

    Usually that means that you have a corrupt font or a corrupt OS font cache.
    See this document for more troubleshooting steps: http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html
    Also, make sure you have all the Photoshop updates installed.

  • How to get IDL file name from CORBA IOR string

    hi, is it possible to get IDL file name from the IOR string? how?
    regards

    Hi,
    I don't think so.
    And if it was possible, which interface should be returned if
    the referenced object implements more than one?
    Regards.
    Karl

  • I just downloaded iOS 8 on my iPad air. This has caused the file names of all of my PDFs in iBooks to revert to their original file name when I downloaded the file, not the custom file names I gave them after downloading the files. In the list of fil

    PDF file names changed with iOS 8

    Further to above
    Progress Notable!
    But before I outline the details, I wish to apologise to APPLE for laying the blame at their doorstep for loosing or misplacing those PDFs I have on the iPad 1, when I set up my iPad Air , by restoring from the backup of iPad 1, thus copying all data from the old to the new.
    NOT REALLY THEIR FAULT AT ALL
    Because a lot of the many PDFs had the same name, ie PDF.pdf, probably my fault more than anybody else's, so I can't blame APPLE for that. Just goes to show one should be a little more precise in creating these portable documents.
    No wonder the poor program " lost its' marbles" when doing the updating and conversion/transfer.
    However, I was able to recover most of them by personal email, and extracting and RENAMING the PDFs as I located them in their new home.
    Those PDFs that we're locked an thus not email-able , I will deal with by
    Viewing
    Photoeing (if that's how you spell it).
    And re-building the PDF from the photos, in unlocked format, after transferring these files either by Bluetooth or Wi-Fi, from the old to the new iPad.
    So all is not lost, and I am thankful that my cautious approach to this matter in the first place, gave me the ability for this successful recovery.
    That's my story and I'm sticking to it.
    I hope this little story of my saga/experience may prove helpful to others yet to cross the chasm of updating.
    Regards to all, including APPLE.
    NICE STUFF YOU MAKE.

  • Offline Folder can not chaange the letter of a file name from capital to lowercase

    Dear Expert,
    we deploy the offline folder to end users, there is a strange issue happened now, if user tries to change the letter of a file name from capital to lowercase, the system will show "You need permission to perform this aciton". But other actions
    are fine, like, create, delete, rename, etc.

    Hi,
    Please check if the offline folder is made available offline to end users. The Offline Files feature uses the client-side cache (CSC) database.  When the files are made available offline, the CSC database prevents users from changing the case of file
    names.
    For more detailed information, please refer to the article below:
    You cannot rename files by using different case when the files are made available offline in Windows Vista or in Windows 7
    http://support.microsoft.com/kb/953945/en-us
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for