Uploading updated files

I have a site up with a pdf resume link. I update the resume from time to time but do not change it's location or name. When I re-publish the site (I delete everything on the server and re-publish anew) the old version of the pdf file is what gets uploaded to the server. I then have to manually go back to the server, delete the old pdf file and upload the new one. The link works fine.
My question: Is it possible to get iWeb to recognize the newer version of the same named file? It seems to store the original version somewhere and that's what gets published.
I am using iWeb 1.1.2
Jean

Jean:
You could place the pdf file on the server and use a direct url to it, i.e. http://www.servername.com/youraccountfolder/resume.pdf, whatever the url to that file would be. Then all you need to do is change the file and not have to republish the site.
One way to get the URL of the pdf is to visit your site and click on the link for the current pdf. Unless you have it zipped so it will download without displaying the pdf file will be displayed in the browser. Go the the URL window displaying the PDF and copy it. Use that URL for a hyperlink.
Note: the pdf probably shouldn't be in the same folder as the rest of the site's files as it would be deleted if you ever republished the site for any reason.
Without removing the current pdf link, create a new hyperlink pointing to an updated pdf file that you've placed on the server. Publish to a folder and test the new link. If it works you can delete the original hyperlink to the older pdf file and republish. From then on you just need to upload a new pdf file of the same name to update the site.
OT

Similar Messages

  • Uploading updated file to live server

    Hi there,
    DW 8.0.2
    Develop Local sites on C:\sites\all-my-sites
    Test on C:\Inetpub\wwwroot\all-my-sites
    Ever since I have been using DW (4 years now), I have tried
    to remember
    what files I changed and updated them to the live server with
    FTP.
    Sometimes it gets to much to remember and I then upload a
    whole folder.
    Is there any other way to do this? which can save me a lot of
    time.
    Regards,
    Deon

    In article <e5eccm$bmk$[email protected]>,
    Deon <[email protected]> wrote:
    > Hi there,
    >
    > DW 8.0.2
    >
    > Develop Local sites on C:\sites\all-my-sites
    > Test on C:\Inetpub\wwwroot\all-my-sites
    >
    > Ever since I have been using DW (4 years now), I have
    tried to remember
    > what files I changed and updated them to the live server
    with FTP.
    > Sometimes it gets to much to remember and I then upload
    a whole folder.
    >
    > Is there any other way to do this? which can save me a
    lot of time.
    >
    > Regards,
    > Deon
    Why not use the synchronize function? That way you never need
    to
    remember what was just update and where it lives. DW will
    check over the
    site and show a list of all files it thinks should be
    updated. If you
    don't want one changed, option to not update is there.

  • "old" website is viewed after uploading new files

    I cannot figure this out, but my iWeb says (over and over and over) that it is correctly uploading updated files to my host but apparently not. If I go to my own URL to view it only the old site shows up. I have moved the folder where the site is located to the desktop and even temporarily trashed the "old" files and yet only the old pages show up. Any ideas?

    Which version of Firefox are you using? It may be how Firefox manages color. You could try this FF add-on: Color Management :: Firefox Add-ons.
    Or use web-safe colors as discussed on this site: http://www.iwebformusicians.com/WebMusic/FontsandColors.html.
    OT

  • Code doesn't update when uploading new files to website.

    code doesn't update when uploading new files to website.   I was using an old DW version for a long time then forced to upgrade when I bought my MacBook Pro. Now when I make changes to my pages and link to new files etc on my harddrive, when i upload the pages it won't image because the code still points to harddrive (this did not used to be a problem)... I manually changed the code on the web host site to point to the site and it loaded fine. But now my files on my harddrive also point to the web host files and now don't image on my computer. I never had to worry about this so far and wonder if the new version has a setting I'm supposed to be aware of so that I can design on my hardrive and upload and it knows that the files are being uploaded with it?  Ugh hpe this makes sense - I'm NOT a webs designer and the new DW is way more than I use in it's technology.

    Hi
    This sounds like you have not defined your site in the site definition.
    Follow the steps in these 2 tutorials to set-up your site locally and for the remote server -
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt6.html
    PZ

  • Use SkyDrive to upload collected files and post screen shot/picture. (Updated: 1/16/2012)

    To help community members troubleshoot issues efficiently, sometimes we need to collect related files (such as Event logs, Network traces, Setup
    log files, Screenshots, etc.) to perform a specific analysis. 
    We can simply use SkyDrive, which is a free storage on Windows Live, it’s easy to store and share your files and photos with almost anyone. To make the
    steps clear, I would like to share the detailed steps for:
    1. How to use  SkyDrive to upload collected files?
    2. How to post screenshots or other pictures in forum threads?
    1.  
    How to use
    SkyDrive to upload collected files? 
    1)   
    Open the
     SkyDrive site.
    2)   
    In the
    Sign In page, if you own a Windows Live ID, please type your Windows Live ID and Password to sign in; Otherwise, you may click Sign Up to register a new one. See the following screen shot.
    3)   
    After signing in Windows Live, click Create folder.
    4)     Name
    the folder and edit permissions to share with relevant person.
    Important Note: You
    can share the folder with Everyone if there is no private/sensitive information (such as the screen shot of a prompt error message). To so so, simply select the "Everyone (Public)" option in the "Share with" box. Please refer to the following screen shot:
    However, for private information that you do NOT want to be accessed by everyone, it is recommended to share with specified individuals. To do so, you can expand the "Share with" box, choose the "Select people..." option, and then type their
    Live IDs in the Individual box. Please refer to the screen shot below:
    5)   
    Drag the previously collected files directly to the Skydrive folder. For example:
    6)   
    Click Upload.
    7)   
    Click on the uploaded files and tell us the URL.
    2.  
    How to post screenshots or other pictures in forum threads?
    (This section updated on 1/16/2012 to reflect changes in Skydrive. Thanks to
    Jeeped on the Microsoft Answers forums)
    1)   Please
    use the above method to upload the picture files in advance. Then, in your Skydrive space, Right Click the picture and select
    View Original. Press Ctrl + A, or Right Click and select Copy, to select it.
    2)   
    Press Ctrl + C to copy this picture. 
    3)   
    Navigate to your post textbox, and press Ctrl + V, or Right Click and select Paste, to paste the picture there.
    Then, the picture will be successfully inserted in that thread.

    I cant even open windows now!!!! it crashes mecilessly here is a copy of the only dump file i have. i retreved it from second life and cant copy it onto the clip board.
    Problem signature:  Problem Event Name:BlueScreen  OS Version:6.1.7600.2.0.0.768.3  Locale ID:1033
    Additional information about the problem:  BCCode:124  BCP1:0000000000000000  BCP2:FFFFFA80050BE8F8  BCP3:0000000000000000  BCP4:0000000000000000  OS Version:6_1_7600  Service Pack:0_0  Product:768_1
    Files that help describe the problem:  C:\Windows\Minidump\073011-29484-01.dmp  C:\Users\madamediva\AppData\Local\Temp\WER-72805-0.sysdata.xml
    Read our privacy statement online:  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:  C:\Windows\system32\en-US\erofflps.txt
    dump_pciidex.sysdump_pciidex.sys+216e730fffff880`01464000fffff8b0`014700000x000000300000c0000x4a5bc1137/13/2009 7:19:47 PMntoskrnl.exentoskrnl.exe+782e2fffff800`02a03000fffff800`02fe00000x005dd0000x4a5bc6007/13/2009 7:40:48 PMMicrosoft® Windows® Operating
    SystemNT Kernel & System6.1.7600.16385 (win7_rtm.090713-1255)Microsoft CorporationC:\Windows\system32\ntoskrnl.exeACPI.sysfffff880`00f46000fffff880`00f9d0000x000570000x4a5bc1067/13/2009 7:19:34 PMamdxata.sysfffff880`00c6c000fffff880`00c770000x0000b0000x4a12f2eb5/19/2009
    1:56:59 PMatapi.sysfffff880`00e59000fffff880`00e620000x000090000x4a5bc1137/13/2009 7:19:47 PMataport.SYSfffff880`00e62000fffff880`00e8c0000x0002a0000x4a5bc1187/13/2009 7:19:52 PMAtiPcie.sysfffff880`01fe8000fffff880`01ff00000x000080000x4a0054865/5/2009 11:00:22
    AMBATTC.SYSfffff880`00e1e000fffff880`00e2a0000x0000c0000x4a5bc3b57/13/2009 7:31:01 PMCI.dllfffff880`00d1a000fffff880`00dda0000x000c00000x4a5be01d7/13/2009 9:32:13 PMCLASSPNP.SYSfffff880`01800000fffff880`018300000x000300000x4a5bc11e7/13/2009 7:19:58 PMCLFS.SYSfffff880`00cbc000fffff880`00d1a0000x0005e0000x4a5bc11d7/13/2009
    7:19:57 PMcng.sysfffff880`01000000fffff880`010730000x000730000x4a5bc8147/13/2009 7:49:40 PMcompbatt.sysfffff880`00e15000fffff880`00e1e0000x000090000x4a5bc3b67/13/2009 7:31:02 PMcrashdmp.sysfffff880`01ff0000fffff300`01ffe0000xfffffa800000e0000x4a5bcabd7/13/2009
    8:01:01 PMdisk.sysfffff880`01fd2000fffff880`01fe80000x000160000x4a5bc11d7/13/2009 7:19:57 PMdump_dumpfve.sysfffff880`01235000fffff87f`012480000xffffffff000130000x4a5bc18f7/13/2009 7:21:51 PMdump_msahci.sysfffff880`01470000fffff87f`0147b0000xffffffff0000b0000x4a5bcabd7/13/2009
    8:01:01 PMfileinfo.sysfffff880`01145000fffff880`011590000x000140000x4a5bc4817/13/2009 7:34:25 PMfltmgr.sysfffff880`010f9000fffff880`011450000x0004c0000x4a5bc11f7/13/2009 7:19:59 PMFs_Rec.sysfffff880`0122b000fffff880`012350000x0000a0000x4a5bc1117/13/2009 7:19:45
    PMfvevol.sysfffff880`01f98000fffff880`01fd20000x0003a0000x4a5bc1a77/13/2009 7:22:15 PMfwpkclnt.sysfffff880`01400000fffff880`0144a0000x0004a0000x4a5bc1647/13/2009 7:21:08 PMhal.dllfffff800`02fe0000fffff800`030290000x000490000x4a5bdf087/13/2009 9:27:36 PMhwpolicy.sysfffff880`01f8f000fffff880`01f980000x000090000x4a5bc0fa7/13/2009
    7:19:22 PMkdcom.dllfffff800`00bd1000fffff800`00bdb0000x0000a0000x4a5bdfdb7/13/2009 9:31:07 PMkl1.sysfffff880`01830000fffff880`01f8f0000x0075f0000x4c0f985b6/9/2010 9:34:19 AMksecdd.sysfffff880`01200000fffff880`0121a0000x0001a0000x4a5bc1567/13/2009 7:20:54 PMksecpkg.sysfffff880`015d3000fffff880`015fe0000x0002b0000x4a5bc84a7/13/2009
    7:50:34 PMmcupdate.dllfffff880`00c9b000fffff880`00ca80000x0000d0000x4a5bdf657/13/2009 9:29:09 PMmountmgr.sysfffff880`00e3f000fffff880`00e590000x0001a0000x4a5bc11a7/13/2009 7:19:54 PMmsahci.sysfffff880`00ff0000fffff880`00ffb0000x0000b0000x4a5bcabd7/13/2009
    8:01:01 PMmsisadrv.sysfffff880`00fa6000fffff880`00fb00000x0000a0000x4a5bc0fe7/13/2009 7:19:26 PMmsrpc.sysfffff880`01165000fffff880`011c30000x0005e0000x4a5bc17c7/13/2009 7:21:32 PMmup.sysfffff880`01452000fffff880`014640000x000120000x4a5bc2017/13/2009 7:23:45
    PMndis.sysfffff880`01481000fffff880`015730000x000f20000x4a5bc1847/13/2009 7:21:40 PMNETIO.SYSfffff880`01573000fffff880`015d30000x000600000x4bbe946f4/8/2010 10:43:59 PMNtfs.sysfffff880`0124c000fffff880`013ef0000x001a30000x4a5bc14f7/13/2009 7:20:47 PMpartmgr.sysfffff880`00e00000fffff880`00e150000x000150000x4a5bc11e7/13/2009
    7:19:58 PMpci.sysfffff880`00fb0000fffff880`00fe30000x000330000x4a5bc1177/13/2009 7:19:51 PMPCIIDEX.SYSfffff880`00c5c000fffff880`00c6c0000x000100000x4a5bc1147/13/2009 7:19:48 PMpcw.sysfffff880`0121a000fffff880`0122b0000x000110000x4a5bc0ff7/13/2009 7:19:27 PMPSHED.dllfffff880`00ca8000fffff880`00cbc0000x000140000x4a5be0277/13/2009
    9:32:23 PMMicrosoft® Windows® Operating SystemPlatform Specific Hardware Error Driver6.1.7600.16385 (win7_rtm.090713-1255)Microsoft CorporationC:\Windows\system32\PSHED.dllPxHlpa64.sysfffff880`01159000fffff880`01164e000x0000be000x4a4162536/23/2009
    7:16:35 PMrdyboost.sysfffff880`010bf000fffff880`010f90000x0003a0000x4a5bc48a7/13/2009 7:34:34 PMspldr.sysfffff880`0144a000fffff880`014520000x000080000x4a0858bb5/11/2009 12:56:27 PMtcpip.sysfffff880`01602000fffff880`017ff0000x001fd0000x4bbe94e24/8/2010 10:45:54
    PMvdrvroot.sysfffff880`00fe3000fffff880`00ff00000x0000d0000x4a5bcadb7/13/2009 8:01:31 PMvolmgr.sysfffff880`00e2a000fffff880`00e3f0000x000150000x4a5bc11d7/13/2009 7:19:57 PMvolmgrx.sysfffff880`00c00000fffff880`00c5c0000x0005c0000x4a5bc1417/13/2009 7:20:33 PMvolsnap.sysfffff880`01073000fffff880`010bf0000x0004c0000x4a5bc1287/13/2009
    7:20:08 PMWdf01000.sysfffff880`00e93000fffff880`00f370000x000a40000x4a5bc19f7/13/2009 7:22:07 PMWDFLDR.SYSfffff880`00f37000fffff880`00f460000x0000f0000x4a5bc11a7/13/2009 7:19:54 PMWMILIB.SYSfffff880`00f9d000fffff880`00fa60000x000090000x4a5bc1177/13/2009 7:19:51
    PM

  • Iweb Seo Tool not uploading last updated file

    Hello,
    I am using the Iweb Seo Tool to put title tags, google analicts...I have used it and it works, it updated me the data the first time.
    But now I was doing some changes in the Iweb adding things, changing others....and I saved the changes in Local, then open Iweb Seo Tool press Re-Apply save tags, go to publish, try to upload through FTP like I did before and press browse go to the file CK_Translations try to get the last file updated (it should appear saturday 13:04 file changed) and it doesn't.
    http://picasaweb.google.com/carlinhosiro/IwebSeoToolErrorUploading#5541600955239 467618
    Like you can see in the printscreen the exact date for last update (what the programm say) is jueves 18 Noviembre de 2010 a 10:50, but this is wrong is not real, I just change the file in Iweb save it in local and it should appear saturday 20 Noviembre de 2010 a 13:06....something is wrong, and it is not updating me the last version???
    Why?
    Can anybody help here.
    THANKS A LOT.

    Did you check the files in the folder to see if the files modified has the correct dates? I've had folders with one date and the files inside with newer. That might be the case here.
    Also you might try using a 3rd party FTP client like the free Cyberduck to upload the files. It can be setup to upload just the new or modified files if the steps in this tutorial are followed: Old Toad's Tutorial #2 - Uploading only those published new or newly edited files when using a 3rd party FTP client.
    OT

  • Is there any way to upload iWeb files updates only with a 3rd party ftp program to a new hoster, e.g. Godaddy? I see no posts newer than 2007

    Is there any way to upload iWeb files updates only with a 3rd party ftp program to a new hoster, e.g. Godaddy? I see no posts newer than 2007.

    If you are using iWeb V 3, there are two other options for publishing the site...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    Some pointers for choosing hosting...
    http://www.iwebformusicians.com/iWeb/Website-Hosting.html

  • Prime 2.1 upload of update files failes

    When trying to upload some update files I get an error "An error occurred while uploading file." and then, after some minutes "There was an error uploading this file. Waited 180 seconds for upload to be complete, but it was never completed.".
    This happens with "pi_2.1device_packs_6-49.ubf" and "pi212_20141118_01.ubf" on PI 2.1 (2.1.0.0.87).
    I am following the update instruction in Release Notes (http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/2-1-2/release/notes/cpi_rn.html#pgfId-52962).
    I am using the root account in GUI and already restarted NCS.
    Does anyone have a solution?
    Thanks

    I tried it using Chrome it works perfectly fine. It may be mostly a browser issue. I would recommend to try another recommended browser.
    Also, see if you can use IE for this (7/8/9). In case you get an error try from 'Internet Options' * select 'Security' tab * click 'Custom Level' button * Disable the IE option 'Include the local directory path when uploading files to a server' .
    -Thanks
    Vinod

  • Lost option to upload related files when using testing server.

    I used to get a dialogue box when I was previewing files on my local machine using my localhost testing server setup. It was kind of annoying having to click yes every time. Last week I accidentally clicked the don't show this anymore box and now when I preview a site on my localhost related files and updated files are not uploaded. I have to manually upload the css, php, and any other related files to the testing server's folder.
    I tried deleting preferences, re-installing Dreamweaver CS4, and everything else I can think of but I can't get this option back. Is there some way, other than using the same folder for the testing server and the site to avoid this problem?
    Thanks.

    Edit > Preferences > Site > Dependant Files > Check the box for "Prompt on Put or Check-in"
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Error while uploading text file....

    Halo Friends,
    I am uploading 4 text files which contain three columns separated by a tab, but when i am trying to upload those files using WS_UPLOAD Function Module i am getting a runtime error saying 'error while uploading/downloading'.
    Please solve this problem as soon as possible.
    Thanks in Advance,
    rama

    Halo again,
    Now that i am able to upload the files, i need to update the database table the update statement is executing correctly but when i debug i see that the sy-subrc value is 4 but not 0.
    and hence the it is not committed.
    Any suggestions. i am pasting my code here for your reference:
    Tables: qmfe.
    data: begin of gt1_qmfe occurs 0,
          qmnum       like qmfe-qmnum,
          fenum       like qmfe-fenum,
          /itml/usr20 like qmfe-/itml/usr20,
          end of gt1_qmfe.
    data: begin of gt2_qmfe occurs 0,
          qmnum       like qmfe-qmnum,
          fenum       like qmfe-fenum,
          /itml/usr21 like qmfe-/itml/usr21,
          end of gt2_qmfe.
    data: begin of gt3_qmfe occurs 0,
          qmnum       like qmfe-qmnum,
          fenum       like qmfe-fenum,
          /itml/usr19 like qmfe-/itml/usr19,
          end of gt3_qmfe.
    data: begin of gt4_qmfe occurs 0,
          qmnum       like qmfe-qmnum,
          fenum       like qmfe-fenum,
          /itml/usr07 like qmfe-/itml/usr07,
          end of gt4_qmfe.
    data: gs1_qmfe like line of gt1_qmfe,
          gs2_qmfe like line of gt2_qmfe,
          gs3_qmfe like line of gt3_qmfe,
          gs4_qmfe like line of gt4_qmfe.
    data: ls_lines1 type i,
          ls_lines2 type i,
          ls_lines3 type i,
          ls_lines4 type i.
    parameters: ip_file1 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\StoDt.txt'     obligatory,
                ip_file2 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\RcDtCust.txt'  obligatory,
                ip_file3 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\DockDate.txt'  obligatory,
                ip_file4 type RLGRAP-FILENAME default 'C:\Urgent\TextFiles\AWB.txt'       obligatory.
    field-symbols: <fs1> like gs1_qmfe,
                   <fs2> like gs2_qmfe,
                   <fs3> like gs3_qmfe,
                   <fs4> like gs4_qmfe.
    perform upload_gt1_qmfe.
    perform upload_gt2_qmfe.
    perform upload_gt3_qmfe.
    perform upload_gt4_qmfe.
    perform update_qmfe.
    *&      Form  upload_gt1_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM upload_gt1_qmfe .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = ip_file1
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = gt1_qmfe.
    describe table gt1_qmfe lines ls_lines1.
    write: / ls_lines1.
    ENDFORM.                    " upload_gt1_qmfe
    *&      Form  upload_gt2_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM upload_gt2_qmfe .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = ip_file2
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = gt2_qmfe.
    describe table gt2_qmfe lines ls_lines2.
    write: / ls_lines2.
    ENDFORM.                    " upload_gt2_qmfe
    *&      Form  upload_gt3_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM upload_gt3_qmfe .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = ip_file3
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = gt3_qmfe.
    describe table gt3_qmfe lines ls_lines3.
    write: / ls_lines3.
    ENDFORM.                    " upload_gt3_qmfe
    *&      Form  upload_gt4_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM upload_gt4_qmfe .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = ip_file4
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = gt4_qmfe.
    describe table gt4_qmfe lines ls_lines4.
    write: / ls_lines4.
    ENDFORM.                    " upload_gt4_qmfe
    *&      Form  update_qmfe
          text
    -->  p1        text
    <--  p2        text
    FORM update_qmfe .
    data ls_cnt type i.
    loop at gt1_qmfe assigning <fs1>.
    update qmfe set    /itml/usr20 = <fs1>-/itml/usr20
                where  qmnum       = <fs1>-qmnum
                and    fenum       = <fs1>-fenum.
    if sy-subrc = 0.
    commit work.
    add 1 to ls_cnt.
    endif.
    endloop.
    write: / ls_cnt.
    ENDFORM.                    " update_qmfe

  • Uploading CSV file problem

    Hello everyone.
    I have a minor problem in uploading CSV file to HTMLDB.
    I don't know the exact reason, but HTMLDB threw
    "ORA-20001: Unable to create collection: ORA-06502: PL/SQL: numeric or value error" whenever I tried to upload my csv file. after a few repetition of deleting potential problem-causing columns and trying again, I found out the following:
    when numeric value and character value are stored together in single column, the upload fails. For example, we have a column which stores the employee number. The employee number is just a sequential numeric value, however temporary employees have 'T' in front of their employee number, so it begins something like T0032 and so on.
    So, then, I tried to enclose all the employee numbers which start with numeric value with " character, but that would just simply take too long to do it manually, and excel does not seem to support enclosing the values with " when it's saving the spreadsheet with CSV format.
    So, I'm kind of stuck right now.
    Can anyone give me a good way to deal it?
    THANK YOU!

    Thanks for updating my forum setting, my name is now clearly visible :-)
    anyway.. I went back and tested couple of things...
    It now appears that the problem is not caused from values inside the column... instead..
    I believe the size of csv file with certain character set is the issue here...
    This is a rough estimate, but file size larger than about 31.7 ~ 9kb caused errors IF THEY CONTAINED OTHER CHARACTER SET THAN ENGLISH.
    here are informations about my setting:
    1. Oracle database: initially 9.2.0.1 -> patched upgrade to 9.2.0.4
    2. HTMLDB: 1.4.0.00.21c (downloaded from otn)
    3. db character set : UTF-8
    4. OS: windows 2000 (with up-todate service pack and
    security patches and etc..)
    5. system: toshiba tecra 2100 with 1GB ram and 40GB hdd
    6. operation system locale: korean, south korea
    I tried uploading many other files in both english and korean, which is my national language. The english csv file worked beautifully, without any file size limitations. However, when I tried to upload a file with
    KOREAN characters in it, it failed.
    Intrigued by this behavior I started to test the file upload with various excel files, and found out that..
    1. english csv files caused absolutely no errors.
    2. engilsh file with single korean character immediately
    threw the error, if the size exceeded 31.8kb (or I
    think the size is 32kb)
    3. I tested korean file mixed english file, caused
    the same error if the size exceeded 32kb.
    the distribution of korean characters inside the
    csv file did not matter, just don't go beyond 32kb!
    Please reproduce this behavior (but I presume that some efforts will be required in order to reproduce this error perfectly, since it is not easy to obtain foreign OS in US regions.. is it?)
    anyway, thanks for your quick reply, and
    I hope this problem gets fixed, because in this manner,
    I have to split my file into 32kb chunks!
    - Howard

  • Javascript to upload a file to SharePoint 2010 document library

    Please share your ideas. I am using SharePoint 2010. Currently when uploading files to a document library, first the upload form is opening to upload the document and then the edit form. I would like to have both this in the same form. I am trying to
    create a webpart page with the controls to upload the file to document library and assign values to the fields in the library. I am looking for some javascript for doing this. Is there any other way of achieving this? Please share any sample
    code.
    <label for="title">Enter the title for this document:</label> <input type="text" id="title"><br/><br/>
    <input id="inputFile" type="file"/><br/><br/>
    <input id="uploadDocumentButton" onclick="UploadDocument()" type="button" value="Upload Document"/><script type="text/javascript">
            function UploadDocument() {
                //javascript to upload the file to MyLibrary and update the title field
    </script>

    Use the below code step by step :) 
    (1) Html
      <input type="file" id="attafh"  class="AlltextAccount"  />
          <input type="button" value="upload" onclick="rundCode()" />
    (2) JS File 
    function rundCode() {
        var file = document.getElementById('attafh').files[0];
        if (file) {
            UploadMe(file);
    (3) 
    function UploadMe(readFile) {
        var reader = new FileReader();
        reader.readAsArrayBuffer(readFile); //array buffer
        reader.onprogress = updateProgress;
        reader.onload = loaded;
        reader.onerror = errorHandler;
    (4)
    function loaded(evt) {
        var fileString = evt.target.result;
        var X = _arrayBufferToBase64(fileString); // this is the mothod to convert Buffer array to Binary
            var fileInput = document.getElementById('attafh');
            var fileDisplayArea = document.getElementById('fileDisplayArea');
                var file = fileInput.values;
                 var filePath = $('#attafh').val(); // "c:\\test.pdf";
            var file = filePath.match(/\\([^\\]+)$/)[1];
            var soapEnv =
                "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> \
                    <soap:Body>\
                        <CopyIntoItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>\
                            <SourceUrl>" + filePath + "</SourceUrl>\
                                <DestinationUrls>\
                                    <string>http://intranet/sites/English/DocumentLibrary/" + file + "</string>\
                                </DestinationUrls>\
                                <Fields>\
                                    <FieldInformation Type='Text' DisplayName='Title' InternalName='Title' Value='Test'  />\
                                      <FieldInformation Type='Text' DisplayName='BudgetId' InternalName='BudgetId' Value='8'  />\
                                </Fields>\
                            <Stream>" + X + "</Stream>\
                        </CopyIntoItems>\
                    </soap:Body>\
                </soap:Envelope>";
            $.ajax({
                url: "http://intranet/_vti_bin/copy.asmx",
                beforeSend: function (xhr) { xhr.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/CopyIntoItems"); },
                type: "POST",
                dataType: "xml",
                data: soapEnv,
                complete: processResult,
                contentType: "text/xml; charset=\"utf-8\""
        SP.SOD.executeOrDelayUntilScriptLoaded(initialize, 'SP.js');
        SP.SOD.executeOrDelayUntilScriptLoaded(test, 'SP.js');
    function errorHandler(evt) {
        if (evt.target.error.name == "NotReadableError") {
            // The file could not be read.
    function _arrayBufferToBase64(buffer) {
        var binary = ''
        var bytes = new Uint8Array(buffer)
        var len = bytes.byteLength;
        for (var i = 0; i < len; i++) {
            binary += String.fromCharCode(bytes[i])
        return window.btoa(binary);
    (5)
    function updateProgress(evt) {
    http://www.abdulazizfarooqi.wordpress.com Abdul Aziz Farooqi [BizTalk & SharePoint Consultant] MCPD Web & MCPD SharePoint 2010

  • CSOM code in C # to download and upload multiple files from/to sharepoint library

    Hi All,
    Please help me I want to first download all my files from sharepoint library to my local folder using CSOM code .
    Once downloading is completed I want to upload those files in another library .
    I have done same thing using web services but need to do by CSOM now.
    Thanks please provide code of peice
    sudhanshu sharma Do good and cast it into river :)

    By using below code I am downloading multiple documents and uploading same doc to sharepoint while uploading i want to updat emetadata of source library to destination library ..
    I am able to do so but want to do now for dateandTime+metadata column as well please can you check my approach and let me know tht how to do for such kind of columns-
    FileProperty.cs
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    namespace ST_9569f2fe51bd4137bb31c38b3d46455d
    class FileProperty
    public string Title; //single line of text
    public string Description; //Multiple line of text
    public string DocumentType; //choice type
    public string DocumentCategory; //Choice type
    public string DocumentNumber; //Single line of text
    // public string DocumentStatus; //Choice
    public string DocumentTitle; //single line of text
    // public string CrossReference; //Multipleline type
    //public DateTime PublishDate; //DateAndTime Type column
    /// <summary>
    /// Get the SP Document Column internal name and thier respective values
    /// in key -value pair.
    /// </summary>
    /// <returns>The List of KeyValuePair</returns>
    public List<KeyValuePair<string, string>> getColumnKeyValueListProducts()
    {//Target Columns
    List<KeyValuePair<string, string>> columnKeyValuePairList = new List<KeyValuePair<string, string>>();
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Title", Title));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Description0", Description));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Type", DocumentType));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Category", DocumentCategory));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Number", DocumentNumber));
    //columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Status", DocumentStatus));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Title", DocumentTitle));
    //columnKeyValuePairList.Add(new KeyValuePair<string, string>("Cross%5Fx0020%5FReference", CrossReference));
    // columnKeyValuePairList.Add(new KeyValuePair<string, string>("Publish_x0020_Date", PublishDate));
    return columnKeyValuePairList;
    /* public List<KeyValuePair<string, DateTime>> getColumnKeyValueListProductsforDatenTime()
    //Target Columns
    List<KeyValuePair<string, DateTime>> columnKeyValuePairListdt = new List<KeyValuePair<string, DateTime>>();
    columnKeyValuePairListdt.Add(new KeyValuePair<string, DateTime>("Publish_x0020_Date", PublishDate));
    return columnKeyValuePairListdt;
    #region Help: Introduction to the script task
    /* The Script Task allows you to perform virtually any operation that can be accomplished in
    * a .Net application within the context of an Integration Services control flow.
    * Expand the other regions which have "Help" prefixes for examples of specific ways to use
    * Integration Services features within this script task. */
    #endregion
    #region Namespaces
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    using Microsoft.SharePoint.Client;
    using System.IO;
    using System.Net;
    using System.Collections.Generic;
    //using System.IO;
    #endregion
    namespace ST_9569f2fe51bd4137bb31c38b3d46455d
    /// <summary>
    /// ScriptMain is the entry point class of the script. Do not change the name, attributes,
    /// or parent of this class.
    /// </summary>
    [Microsoft.SqlServer.Dts.Tasks.ScriptTask.SSISScriptTaskEntryPointAttribute]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    #region Help: Using Integration Services variables and parameters in a script
    /* To use a variable in this script, first ensure that the variable has been added to
    * either the list contained in the ReadOnlyVariables property or the list contained in
    * the ReadWriteVariables property of this script task, according to whether or not your
    * code needs to write to the variable. To add the variable, save this script, close this instance of
    * Visual Studio, and update the ReadOnlyVariables and
    * ReadWriteVariables properties in the Script Transformation Editor window.
    * To use a parameter in this script, follow the same steps. Parameters are always read-only.
    * Example of reading from a variable:
    * DateTime startTime = (DateTime) Dts.Variables["System::StartTime"].Value;
    * Example of writing to a variable:
    * Dts.Variables["User::myStringVariable"].Value = "new value";
    * Example of reading from a package parameter:
    * int batchId = (int) Dts.Variables["$Package::batchId"].Value;
    * Example of reading from a project parameter:
    * int batchId = (int) Dts.Variables["$Project::batchId"].Value;
    * Example of reading from a sensitive project parameter:
    * int batchId = (int) Dts.Variables["$Project::batchId"].GetSensitiveValue();
    #endregion
    #region Help: Firing Integration Services events from a script
    /* This script task can fire events for logging purposes.
    * Example of firing an error event:
    * Dts.Events.FireError(18, "Process Values", "Bad value", "", 0);
    * Example of firing an information event:
    * Dts.Events.FireInformation(3, "Process Values", "Processing has started", "", 0, ref fireAgain)
    * Example of firing a warning event:
    * Dts.Events.FireWarning(14, "Process Values", "No values received for input", "", 0);
    #endregion
    #region Help: Using Integration Services connection managers in a script
    /* Some types of connection managers can be used in this script task. See the topic
    * "Working with Connection Managers Programatically" for details.
    * Example of using an ADO.Net connection manager:
    * object rawConnection = Dts.Connections["Sales DB"].AcquireConnection(Dts.Transaction);
    * SqlConnection myADONETConnection = (SqlConnection)rawConnection;
    * //Use the connection in some code here, then release the connection
    * Dts.Connections["Sales DB"].ReleaseConnection(rawConnection);
    * Example of using a File connection manager
    * object rawConnection = Dts.Connections["Prices.zip"].AcquireConnection(Dts.Transaction);
    * string filePath = (string)rawConnection;
    * //Use the connection in some code here, then release the connection
    * Dts.Connections["Prices.zip"].ReleaseConnection(rawConnection);
    #endregion
    /// <summary>
    /// This method is called when this script task executes in the control flow.
    /// Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
    /// To open Help, press F1.
    /// </summary>
    public void Main()
    // TODO: Add your code here
    //Unpublished lib used to download files from sharepoint to local and Published library for uploading files from local to sharepoint
    //var srcFolderUrl = "http://ui3dats011x:2015/sites/techunits/UnPublished%20Doc/Forms/AllItems.aspx";
    //var destFolderUrl = "http://ui3dats011x:2015/sites/techunits/Published%20Documents/Forms/AllItems.aspx";
    using (var ctx = new ClientContext("http://ui3dats011x:2015/sites/techunits/"))
    try
    List LibraryName = ctx.Web.Lists.GetByTitle("Unpublished Doc");
    List LibraryName1 = ctx.Web.Lists.GetByTitle("Published Documents");
    ctx.Load(LibraryName1.RootFolder);
    ctx.Load(LibraryName);
    ctx.ExecuteQuery();
    CamlQuery camlQuery = new CamlQuery();
    //Used this caml query for filtering
    camlQuery.ViewXml = @"<View><Query><Where><Eq><FieldRef Name='Document_x0020_Type'/><Value Type='Choice'>Technical Unit</Value></Eq></Where></Query></View>";
    Microsoft.SharePoint.Client.ListItemCollection listItems = LibraryName.GetItems(camlQuery);
    ctx.Load<Microsoft.SharePoint.Client.ListItemCollection>(listItems);
    ctx.ExecuteQuery();
    string filename;
    FileInformation fileInfo;
    System.IO.FileStream outputStream;
    Dictionary<string, string> itemmetadata = new Dictionary<string, string>();
    foreach (var item in listItems)
    if (itemmetadata.Count > 0)
    itemmetadata.Clear();
    ctx.Load(item);
    ctx.ExecuteQuery();
    ctx.Load(item.File);
    ctx.ExecuteQuery();
    filename = item.File.Name;
    foreach (KeyValuePair<string, object> metaval in item.FieldValues.)
    string metavalue = Convert.ToString(metaval.Value);
    //if(String.IsNullOrEmpty(metaval.Value.ToString()))
    if (!(String.IsNullOrEmpty(metavalue)))
    itemmetadata.Add(metaval.Key, metaval.Value.ToString());
    else
    itemmetadata.Add(metaval.Key, "");
    fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(ctx, item.File.ServerRelativeUrl.ToString());
    outputStream = new FileStream(@"C:\Users\jainruc\Desktop\Sudhanshu\ComDownload\" + filename, FileMode.Create, FileAccess.Write);
    fileInfo.Stream.CopyTo(outputStream);
    outputStream.Dispose();
    outputStream.Close();
    //Uploading
    string srcpath = @"C:\Users\jainruc\Desktop\Sudhanshu\ComDownload\";
    string siteName = @"http://ui3dats011x:2015/sites/techunits/";
    string docLibraryName = @"http://ui3dats011x:2015/sites/techunits/Published%20Documents/Forms/AllItems.aspx";
    UploadFile(srcpath, siteName, docLibraryName, itemmetadata,filename);
    }//End of try
    catch (Exception ex)
    Dts.TaskResult = (int)ScriptResults.Success;
    public void UploadFile(string srcpath, string siteName, string docLibraryName,Dictionary<string,string> metavalue,string filename)
    using (ClientContext ctx = new ClientContext("http://ui3dats011x:2015/sites/techunits/"))
    try
    List LibraryName1 = ctx.Web.Lists.GetByTitle("Published Documents");
    ctx.Load(LibraryName1.RootFolder);
    ctx.Load(LibraryName1);
    ctx.ExecuteQuery();
    ctx.Credentials = new NetworkCredential("jainfgfgh", "Pashg8878", "mydomain");
    //Loop for getting all files one by one
    using (var fs = new FileStream(String.Concat(srcpath,"/",filename), FileMode.OpenOrCreate))
    string fileUrl = String.Format("{0}/{1}", LibraryName1.RootFolder.ServerRelativeUrl, filename);
    Microsoft.SharePoint.Client.File.SaveBinaryDirect(ctx, fileUrl, fs, true);
    UpdateMetadata(fileUrl,ctx,metavalue);
    //End of looping
    }//End of try block
    catch (Exception ex)
    }//End of Using
    }//End of function
    public void UpdateMetadata(string uploadedfileurl,ClientContext ctx,Dictionary<string,string> mvalue)
    Microsoft.SharePoint.Client.File uploadedfile = ctx.Web.GetFileByServerRelativeUrl(uploadedfileurl);
    //create an object of the class holding all the properties of the document
    ctx.Load(uploadedfile);
    ctx.ExecuteQuery();
    FileProperty fileProperty = new FileProperty();
    fileProperty.Description = mvalue["Description0"];
    fileProperty.Title = mvalue["Title"];
    fileProperty.DocumentType = mvalue["Document_x0020_Type"];
    fileProperty.DocumentCategory = mvalue["DocumentCategory"];
    fileProperty.DocumentNumber = mvalue["DocumentNumber"];
    fileProperty.DocumentTitle = mvalue["DocumentTitle"];
    //fileProperty.PublishDate = Convert.ToDateTime(mvalue["PublishDate"]);
    // fileProperty.DocumentStatus = mvalue["DocumentStatus"];
    List<KeyValuePair<string, string>> columnKeyValueList;
    //create a list of item need to be updated or added to sharepoint library
    List<FileProperty> propertyList = new List<FileProperty>();
    propertyList.Add(fileProperty);
    columnKeyValueList = fileProperty.getColumnKeyValueListProducts();
    ListItem item = uploadedfile.ListItemAllFields;
    foreach (KeyValuePair<string, string> metadataitem in columnKeyValueList)
    item[metadataitem.Key.ToString()] = metadataitem.Value.ToString();
    //item["Title"] = uploadedfile.Title;
    item.Update();
    ctx.Load(item);
    ctx.ExecuteQuery();
    #region ScriptResults declaration
    /// <summary>
    /// This enum provides a convenient shorthand within the scope of this class for setting the
    /// result of the script.
    /// This code was generated automatically.
    /// </summary>
    enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    #endregion
    sudhanshu sharma Do good and cast it into river :)

  • Upload csv file and insert into a table for user

    Hello,
    i want to create a Page on which, the User of my Application can upload a semicolon delimited file and the data of the file should automatically be stored in a table.
    I can upload the file and the file is then stored in the htmldb_application_files table.
    But I do not no how to parse the file....
    Can anyone help me or is there anyone who have done that before?
    Thank you,
    Tim

    Tim...
    Here is what I did in a similar situation.
    Let the user download a csv file to use as an excel turnaround document.
    I check digit the primary key. They are not supposed to touch that column.
    They do their excel thing adding data in columns next to the ones they are updating. They now have the original and new data on the same row in the excel document. They save it on a share drive as a csv. A perl script wakes up and parses the csv. Verify's the check digit, checks that the old values still exist in the table... etc, and then does the update if all is well at the row level. The csv is replaced showing the success or failure of the update on each row.
    Probably lots of other ways to accomplish this but I have gotten years of use out of the script. The original csv can come out of almost any application. Mine come from apex, discoverer and some excel queries.
    Bob

  • A strange problem when uploading a file in Struts

    When i upload a file, the other elements in the form of the jsp cannot be got by the ActionForm, instead, the getters show that they are "null"s. But when i upload no file, everthing is ok.
    Moreover, the problem happens when i update an article which can have an picture with it, but when i add a new article, the problem does not appear, instead, the file can be uploaded and other element can also be got.
    i think i might be a problem of the volume of the request , because i put more information to update than to add.
    Hope someboby can help me with the problem.

    When i upload a file, the other elements in the form of the jsp cannot be got by the ActionForm, instead, the getters show that they are "null"s. But when i upload no file, everthing is ok.
    Moreover, the problem happens when i update an article which can have an picture with it, but when i add a new article, the problem does not appear, instead, the file can be uploaded and other element can also be got.
    i think i might be a problem of the volume of the request , because i put more information to update than to add.
    Hope someboby can help me with the problem.

Maybe you are looking for