DnD file in native explorer with deferred download

Hi community,
I am trying to provide functionality to drag and drop a file from our application to native explorer. It is pretty easy to do this if the file is present in the source folder to which the transferrable data points. But the problem is that the attachments in the application in fact reside on an FTP server anf it may take some time to pull the file locally. The ideal solution would be to find out where the user wants to drop the file and download it when the drop is finished.
However I cannot find a way to do this, because I cannot find the target of the drop (I thought of creating a small stub file, putting it as transfer data and after drop do the actual work).
The only possibility I currently see is to download the file in a temporary folder when a drag gesture is recognized(the files are shown in a table) and set the drop action to move, so the source file is deleted after drop(or delete it myself in case of rejected drop).
But since download is time consuming it is not good to do this in the event thread, but OTOH, if I do it in a separate thread explorer will say that the file is being used if the user drops before download has finished.
Please share your experience if you had a similar problem, ideas and pointers to information are welcome.
Mike

Thanks for the input,
Maybe this could be an idea. But I am not quite sure
about this, since we specify user, password and port,
but maybe these could be specified in the FTP URL, I
will check if this could be a solution and post
whatever the result.
I seem to remember that DrClap posted an example of an FTP url that included a user and password. Searching might find it (as long as you use Goggle rather than Sun).
The port should be easy as it is part of the standard url format.

Similar Messages

  • When I downloaded pics from my camera to iPhoto it put them in a file that was named with the download date. Can I do that with Aperture (as the download default)?

    I recently replaced iPhoto with Aperture. When I download pics into Aperture they are place in a file that's called "Untitled Project." When I downloaded pics from my camera to iPhoto they were put in a file that was named with the download date (YYYY MM DD). Can I do that with Aperture (as the download default)?

    My apologies.
    When I import I have an Applescript that stores the images in a year month day folder-project structure so I haven;t used the default Aperture behavior in some time. When I tested it out to reply to you I was doing it from the file system and it picked up the date from the folder.  mea culpa.
    Anyway the closest you can get is to have Aperture split the images by date. IN the Aperture preferences set the project split granularity
    Autosplit into Projects
    and then in the import window set
    Automatically split projects.
    This will give projects named Month Day, Year (ie: Mar 13, 2012) there is no way to change this
    As I said I have a script that runs on import and sets up a structure like:
    Of course many here will say not to name projects this way, that Aperture has the ability to sort by date and you're better off naming projects something more meaningful. For them that is true and it might be for you also. For me I like to store my masters this way, it works for the way I shoot.
    regards

  • I cannot open a pdf file with aole-mail. I can open pdf files from windows explorer. I have associated pdf with adobe reader. My operating system is window

    I cannot open a pdf file with aol e-mail. I went to preferences in Adobe Reader but did not know what to enter for Incoming IMAP and outgoing SMTP. I can open pdf files from windows explorer as  I have associated .pdf files with adobe reader. My operating system is windows 7.
    When I try to open the pdf file within aol e-mail I get a message: 'Your security settings do not allow this file to be downloaded'.  I have not changed my security settings (Tools, Internet Options, security).

    Or http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Why can't I download a pdf file using internet explorer as my browser.I can download pdfs using fire

    Why can't I download a pdf file using internet explorer as my browser. I can download pdfs using firefox.

    Gilad D,
    Thanks for the support.
    I would guess the plugin is enabled since when I use Foxfire as my browser, all pdfs download and are readable. (just doesn’t happen when I use IE as my browser, I get a blank screen with a small “x” in the upper left corner)
    I will try your proposed solution.
    Charlie

  • Since changing our computer I have been unable to download ebooks to my Reader Library I get a message Some file types associated with EPUB files are not associated with Reader Library; Waterstones suggest that I may have accidentally created a new Adobe

    When I try to download them from the Waterstones website I get a message saying:
    ‘Some file types associated with EPUB files are not associated with Reader Library.  Do you want to associate them now?  When I reply yes I get another message; ‘Configuration error unable to update EPUB files check network firewall and try again’.
    The ‘books’ are saved in the Download directory and I can’t transfer them from there to my E-Reader. I have not had any problems before, it was very simple; I saved the download and it automatically went into the Reader Library.
    I contacted HP and they said it is a software error and suggested I contact Waterstones.  I contacted Waterstones Customer Support and got the following response:
    As the error message is specifically mentioning the firewall it does sound like something in the firewall settings is stopping the download from taking place correctly. However, the files should not be being saved to the Download folder. It would be worth trying again by going to your Digital Order History on your Waterstones.com account and pressing the download button, and then making sure to press "Open" not "Save". When you press Open rather than Save it should give the option to open the file with Adobe Digital Editions. If the firewall message still comes up then I'm afraid something is blocking it on your end.
    If the above "Open" download method works but you then still get an error message it could possibly be that you have accidentally created a new Adobe ID when setting up on the new computer, rather than signing in with your old Adobe ID. It would be worth trying the aforementioned download technique again first, but if problems did still persist it would be worth calling Adobe themselves on 0207 365 0735, as they should be able to sort out any account issue.
      In response to the first para of Waterstones email I already do what they suggest I do press ‘Open’ not ‘Save’ but I don’t get the open with Adobe Digital Editions (we have installed Adobe Digital Editions on the new computer. Waterstones say we may have ‘accidentally created a new Adobe ID when setting up the new computer’ does that mean that we shouldn’t have installed Adobe Digital Editions on the new computer as it would have already been there? How do I sign in with my old Adobe ID? 

    Hi all after attampting to get some supoport from adobe by phone.... nice people infurating policys as far as support for digital editions or DRM is conserned... However I got no where with support.
    I ended up instaling Digital editions on my desktop PC and going through the motions of registering and borrowing a book then returning it. Then I trying on my iPad, Bluefire worked, Over drive did not so I completely removed Overdrive and reinstalled and re registered. all working now.
    Maybe some one at adobe did something. Maybe the install of the adobe DE client on a PC corrected what ever was out of wack with my account. Mayby the server that my account lives on did a scan disk and corrected a bad clustrer.
    What ever happend My account is actiove and working again. hope this helps others.

  • Download Excel file through Web dynpro with no windows open?

    Can we have a web dynpro application that just returns an Excel file in the response with no open windows? Similar to a java servlet that is used to download a Excel file?
    This basically means that I cannot use wdComponentAPI.getWindowManager().createNonModalExternalWindow()
    Java Servlet Code
    HttpSession session = request.getSession();      // get a handle on the session id
    response.setContentType("application/download");
    response.setHeader("Content-Disposition", "filename=RTIS_Report.xls");
    PrintWriter out = null;
    out = response.getWriter();
    String report = request.getParameter("REPORT");
    JCO.Table lines = download(request, session, report);
    for (int i = 0; i < lines.getNumRows(); i++) {
         lines.setRow(i);
         String content = lines.getString("LINES") + "\n";
         out.write(content);
         out.flush();
    out.flush();
    out.close();

    Hi,
    I think you can use IWD Cached Web Resource to achieve this..
    See the below code FYI..
    public void downloadToExcel( )
        String fileName = "Customer" + ".xls";
         IWDCachedWebResource cachedExcelResource = null;
         try
              File f = new File("Customer.xls");
              WritableWorkbook workbook =   Workbook.createWorkbook(f);
              WritableFont black = new WritableFont(WritableFont.createFont("Trebuchet MS"),WritableFont.DEFAULT_POINT_SIZE,WritableFont.BOLD,false,UnderlineStyle.SINGLE,Colour.BLACK);
              WritableCellFormat blackFormat = new WritableCellFormat(black);
              WritableFont blue = new WritableFont(WritableFont.createFont("Trebuchet MS"),WritableFont.DEFAULT_POINT_SIZE,WritableFont.NO_BOLD,false,UnderlineStyle.NO_UNDERLINE,Colour.BLUE);
              WritableCellFormat blueFormat = new WritableCellFormat(blue);
              WritableSheet sheet = workbook.createSheet("Customer", 0);
                   Label label;
                   String[] header={"Corporate Code","Batch ID"};
                   for (int i=0;i<2;i++)
                        label = new Label(i,0,header<i>.toString(),blackFormat);
                        sheet.addCell(label);
                   WritableCellFormat integerFormat = new WritableCellFormat(NumberFormats.INTEGER);
                   jxl.write.Number number;
                   // Reading the contents
                   for(int i=0;i<wdContext.nodeVn_DownloadToExcel().size();i++)
                        String strCorpName = wdContext.currentContextElement().getVa_CorpCode();
                        String strBatchID =     wdContext.nodeVn_DownloadToExcel().getVn_DownloadToExcelElementAt(i).getVa_BatchID();
                        label = new Label(0,i+1,strCorpName,blueFormat);
                        sheet.addCell(label);
                        label = new Label(1,i+1,strBatchID,blueFormat);
                        sheet.addCell(label);
                   workbook.setColourRGB(Colour.LIME, 0xff, 0, 0);
                   workbook.write();
                   FileInputStream excelCSVFile = new FileInputStream(f);
                   IWDCachedWebResource cachedWebResource = null;
                   if (excelCSVFile!= null)
                        cachedWebResource = WDWebResource.getWebResource(excelCSVFile, WDWebResourceType.getWebResourceType("xls","application/ms-excel"));
                   cachedWebResource.setResourceName(fileName);
              cachedExcelResource = cachedWebResource;
              wdContext.currentContextElement().setVa_DownloadToExcel(cachedExcelResource.getURL());
              workbook.close();
         catch (Exception ex)
              wdComponentAPI.getMessageManager().reportException("Error in Excel Download"+ex.getMessage(),false);
    Regards,
    Vijay

  • I have an external hard drive with numerous WMA files that I would like to download to iTunes. How do I do this on my MAC?

    I have an external hard drive with numerous WMA files that I would like to download to iTunes. How do I do  this on my MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • I am trying to download through Itunes the news iOS 4.3.3 software to my Ipod touch 4th G. it starts downloading just fine, but when it gets about 200mg into the 600 mg file, it comes back with stopped (err= -3259) has anyone seen this???

    I am trying to download through Itunes the news iOS 4.3.3 software to my Ipod touch 4th G. it starts downloading just fine, but when it gets about 200mg into the 600 mg file, it comes back with stopped (err= -3259) has anyone seen this??? I have tried downloading this at different times of the day, and have also tried it on different internet service providers ... still recieve same error msg...

    Try this article (disable firewall)
    http://support.apple.com/kb/TS2799

  • How do i add a download action for dxf files. firefox assumes its a text file and just opens it with no download action dialog box

    I want to add a download action for dxf files so they open in Autodesk trueview. The steps described here (http://support.mozilla.com/en-US/kb/Managing%20file%20types#w_adding-download-actions) say to click on a link for the filetype you want to add an action to but firefox thinks the dxf is a text file and just opens it in a new tab with no download action dialog box.

    Use the right-click context menu and choose "Save Link As" or hold down the alt key and left-click the link.

  • Cannot download pdf files from internet site with either acrobat pro X or pro XI on windows 8 comput

    cannot download pdf files from internet website with either acrobat pro x or proXI on windows 8 computer.  windows 7, no problem.

    Hi valerieross,
    Acrobat can be used to view pdf's or edit pdf's not download them.
    Check your browser settings.
    If you are referring to viewing pdf's in browser, then please check the following : http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html

  • I am using Mac OS X Lion 10.7.3 with Safari 5.1.5, to download files i use secondary click then followed by download linked file, now i am unable to download by that way previously i did. why?

    i am using Mac OS X Lion 10.7.3 with Safari 5.1.5, to download files i use secondary click then followed by download linked file, now i am unable to download by that way previously i did. why? please help me downloading files using that way

    What happens when you try?

  • Why does FF save files to desktop, when I have "downloads" checked in options? This is a new issue with the latest version 3.6.3 Windows XP Thanks.

    Why does FF save files to desktop, when I have "downloads" checked in options? This is a new issue with the latest version 3.6.3 . Using Windows XP Driving me nuttier! Thanks.
    (Is is that MicroNetFrame Asst thing?)
    == This happened ==
    Every time Firefox opened
    == When I installed latest version

    Thanks for your reply. I appreciate your help.
    It was just a hunch that MircoNetFrame was causing the problem. I disabled it as you suggested, and I still have the problem.
    I just changed under Tools>Options> General - had checked "ask me every time" under downloads, so instead of asking me, FF saved the download to I know not where. It no longer saves it to the desktop, leaving a duplicate in "my documents".
    In windows, I have found unless one knows the entire name of the document, one can never find anything. It isn't listed under recent ''''''__. I can't recall the nomenclature, but the
    capability is ridiculous. So, I don't know where that file I just downloaded is!
    I downloaded a PDF file, but this happens with all DL's. It was so easy to have them all stacked in one place and I could recall
    what I had and when I downloaded it easily.
    Do you have any other suggestions other that going back to the old version of FF, which I would rather not do?
    Thanks again for your time, it is very considerate to help a complete stranger, I must say. Sounds like something I might do! Cheers!

  • HT1338 I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    It should unzip if you double-cick.
    What are you seeing happen when you do that?
    Select a .zip file in the Finder and Get Info (cmd-i). What is set for it to Open With. It should be Archive Utility.

  • Adobe reader will not download my files that it has been previously downloading with no trouble.

    Adobe reader will not download my files that it has been previously downloading with no trouble.

    Your statement is so vague that I have no idea what you are trying to do, or what goes wrong.  Please provide some details!

  • My Windows7 PC just crashed.  I have the files backed up online with Carbonite.  I want to buy a Mac I book.  Carbonite says it cannot download pc files to a Mac.  Is there a solution?

    My Windows7 PC crashed and I have the files backed up online with Carbonite.  I want to buy a Mac I book.  Carbonite says it cannot download pc files to a Mac.  Is there a solution?

    Brilliant, that clears things up - there is a single
    audio in that is next to the PC in so I guess I need
    one of the single cables you have mentioned,
    hopefully the Apple Store can point me in the right
    direction when I go in to buy my Mini.
    If the TV has a single minijack-type audio input, then the cable you need is a very standard one that can be found almost anywhere that cables for audio/home theatre systems are sold. In the old days it would be easy to point you towards the nearest Tandy, but as I understand it they're now gone. However, even supermarkets such as Tesco are likely to have something this basic!
    No doubt Apple will release an Intel Core 2 Duo
    version the day after I pick it up.
    There's no doubt that at some point Apple will revise the range and make new mini's faster or more powerful - and it may be that it happens next week at the Macworld Expo. I'd bet there are a few people holding on for a few days to see if new minis are announced there, and you might want to do the same if it's of concern, but the existing models are plenty powerful, and more than enough for most user's needs.
    Thanks for all your help, much appreciated.
    You are most welcome - and please come back and post again if you have any further questions or any problems once you've got your system!

Maybe you are looking for

  • Report Navigation Issue after upgrading from 10g to 11g

    Hi Experts I have recently upgarded my solution from 10g to 11g. Issue is when I click on column value for navigation it doen't navigate the display remains unchanged 1) I have created new dashboard and placed this report in new dashboard the navigat

  • Using Time Capsule to host iTunes library for use by multiple user accounts

    I have recently purchased my first Time Capsule (2TB, delivered December 2010). I have also recently begun to share a single iTunes library with my partner (ie. we have separate user accounts, but following the instructions found at http://steve-on-s

  • Can't get my Asus Xtion Pro Live to work

    I really hope there are some knowledgeable people for this problem on these forums. I just can't seem to get this device to work. This is the error I get upon trying to run any OpenNI stuff. One or more of the following nodes could not be enumerated:

  • ORA-01847: day of month must be between 1 and last day of month error

    Hi All When i run the following code i'm getting the error:ORA-01847: day of month must be between 1 and last day of month error SELECT t2.owner_cat, t1.owner_id, stock_id, Sum(received_amount) received_amount, Sum(curr_amount) curr_amount, Sum(used_

  • Can not perform local client copy

    Hi Expert, I am not able to perform the local client copy for newly created on production server as system not accepting standard password 'PASS' for user SAP*.  Same is working fine at IDES server. Please help Thanks Gaurav