File Upload via CSOM is incrementing Version number by 2.

Any ideas why a file upload via CSOM is incrementing the version number by 2 instead of one?
I am using the following code to perform the upload
List library = clientContext.Web.Lists.GetByTitle(DOCUMENTS_LIST_NAME);
Folder folder = library.RootFolder;
FileCreationInformation fci = new FileCreationInformation();
Byte[] streamArray = new Byte[document.ContentLength];
document.InputStream.Read(streamArray, 0, document.ContentLength);
fci.Content = streamArray;
fci.Url = documentTypeID + "." + document.FileName.Split('.').Last<String>();
fci.Overwrite = true;
 File fileToUpload = folder.Files.Add(fci);
clientContext.Load(fileToUpload);
clientContext.ExecuteQuery();

It may actually be to do with the metadata that is setting immediately after this code.
Is there a way of overcoming that and including the file upload and the item update in one version?

Similar Messages

  • Which file in Omni.ja contains the version number in HELP | ABOUT

    We are using Firefox in a corporate locked down environment.
    we have made a number of changes to files in the OMNI.JA file to configure Firefox accordingly.
    We now have a newer version of firefox to install/package however, when we replace the default omni.ja file in FF 10.0.10 and go into HELP | ABOUT it shows the version number of FF that the omni.ja file came from, ie 10.0.4.
    Which file(s) need to be replaced in omni.ja so that when we select HELP | ABOUT it shows the correct version of 10.0.10 ?
    regards
    Bill

    hello biffal, which changes to the omnia.ja file have you done originally? maybe there's a better way to do it, because this file will be overwritten by each & every firefox update...

  • Sync fail - files accessed via app always older versions

    Hi, I have a 2TB My Cloud device and various Android devices running the My Cloud App. I have the app set to auto-sync every 120mins however when accessed via the app my files are always older versions, often by a couple of months. The time stamp suggests sync has occured but when I open the file it is clearly an older version.  No other error messages or obvious issues. Any ideas? ThanksStuart

     
    Welcome to the WD Community,
    If you access the drive directly from a pc, are you able to see the recent versions of the files?
    Have you tried reinstalling the app?

  • File Upload via Drag and Drop in IE10

    The drag-and-drop file upload feature introduced in Spaces PS5 is great but it is not compatible with IE9 and earlier versions (see link below).
    Has anyone tried using drag-and-drop with IE10? Did it work?
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=1753102566545647&type=DOCUMENT&id=1453326.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=nyed5wpzc_584

    I'm using the Windows version of Acrobat Pro 9 and found this thread with the same problem. (Key command to replace on Windows is: Ctrl + Alt).
    Anyway, to answer the how to disable the warning, go to the Acrobat Preferences. In the General category under "Warnings", check the setting "Do not show edit warnings". There should be a similar setting on the Mac version.
    (Now I wish replacing pages didn't require a key command like in previous versions.)

  • Auto increment version number

    I want my program to be able to display a version number which is incremented automatically on every new build. Is there any way I can do this in Eclipse 3.2.1?

    It's not an Eclipse question it's a Java question, I just wanted to know whether there was some way of automating this through Eclipse as that is the IDE I'm using at the moment.

  • Assigning video files uploaded via a customer form to the src file section of another page (without manually having to copy an paste over)

    Hi. I’ve set up a web form that uses html and javascript. This particular form lets you upload files. I also have another page that lets you play videos. I was wondering if anyone knows how to make the inner html of for example the upload file form field equal the file that is played by the video player on the other page.
    Basically on youtube when you upload a video it automatically makes another page with the video file you uploaded assigned to the video player on that page. I want to know how to go about doing that. So people can upload videos and then be able to watch them instantly without me manually having to create the page an assigning the right file to the page.
    Even just knowing how to create a different page each time the form is submitted would be helpful. Thanks.

    This is more complex than you realize and JavaScript alone can't do it. You'll need a server-side script like PHP to authenticate and sanitize file uploads to prevent malicious scripts or malware from ever getting to your server.  Then, your script will have to process the uploaded file by saving it to a folder or database, give it a unique ID and then redirect users to a new page that pulls the file into an HTML5 or similar player.  How good are you with server-side programming?
    Nancy O.

  • File uploads via iCloud?

    Why can't I see a way to upload & share files via iCloud? When I bought the iMAC a few weeks ago this was one of the promoted features. In fact I was told I would have 5G of free space?

    When I log into iCloud, the available options are Mail, Contacts, Calendar, Notes, Reminders, Find My Phone, iWork. iWork takes me to options to BUY applications called Keynote, Pages, Numbers.
    I think I read in another forum that iCloud discontinued free uploads a while back. If that's true, that's one of a few key things the Apple Store associate was wrong about when he sold me my computer.

  • Sequence file Version number. How to prevent the automatic resetting build version number whilst auto-incrementing revision number?

    Hi,
    I've got my environment set this way that each save of the sequence file increase the revision part of version number. However, during that increase the build counter is reset to 0. How to prevent it?
    TS 4.2

    Mimi,
    It is pretty common practice in software revisioning to reset a minor number to 0 when a major moves up 1.  There are many different schemes out there.  If you google or bing software versioning schemes you'll see what I'm talking about.
    So looking at it from left to right:  Major.Minor.Revision.Build = 0.0.0.1 
    if you change the Revision it would be expected that anything to the right (in this case Build) would reset to 0.  0.0.1.0!
    Let's say your version is 8.34.56.23.  It would make sense that if you were to change the Major number (which means a Major release) to 9 then your version would go to: 9.0.0.0. 
    A version number is just a unique way to tell someone which specific software you are using so it really doesn't matter that it resets to 0.  Although it makes sense because if you kept your build number sequential and didn't reset it then it would get outrageously larger which would be more annoying than anything. 
    Again this is common accepted practice in industry.
    Good Luck,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Getting the Test Stand version number of an old sequence file

    A customer wants a small change to a previous deployment.
    They have returned the original sequence file to me but the deployment is about two years old.
    Is there anyway that I can get the TestStand Version number from the old sequence file so that I will know which version to save it in.
    I am currently using TestStand 4.2.1.83. 
    Thanks,
    Sean
    Solved!
    Go to Solution.

    As Sean stated back in 2010, you can also read the version number in clear text. You can read some parts of the file in a text editor, the version number is one of those....
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • DMS Version Number Increment Control

    Dear Gurus,
    I have to set a type document with increment version alphanumber so the version has to begin with A , B,...
    so I have to set in Customizing  '* ' in Vers,No.
    Somebody knows which is the user exit to change increment version number of the DIR?
    Thanks in advance

    Hi-
    Assuming you are in ECC 6.0, You can find the BADI by going to SE18 and selecting the radio button "BADI name" and enter "DOCUMENT_NUMBER01" in the text box to right to see the definition.
    The method is:  DOCVERSION_CHECK
    I hope it helps!
    -J

  • Yahoo BrowserPlus file upload

    Hi,
    I'd like to offer my users file uploads via the groovy new Yahoo BrowserPlus.
    The BrowserPlus API call takes a URL parameter, documented as:
    "The url to POST the file to. Can be relative to invoking URL, e.g. if service is invoked from http://www.foo.com/uploader/index.html and url argument is upload.php, the final url will be http://www.foo.com/uploader/upload.php"
    Can anyone tell me what the parameter should be set to in order to upload files to WWV_FLOW_FILES?
    Thanks
    jd

    JD,
    If you haven't already, install the Firebug plugin for Firefox. Create an APEX page uploads a file. Open Firebug > Net tab > upload your file. You can see exactly what URL and parameters it's posting to (either wwv_flow.show or wwv_flow.accept). Understand that you will probably need at the very least the following parameters in addition to your file:
    - p_flow_id (the app number)
    - p_flow_step_id (the page number)
    - p_instance (the session ID
    - p_request (probably optional, but you might want to set it)
    You can extract them from any page via JavaScript:
    console.log('The App ID is: '+$v('pFlowId'));
    I went through this exercise writing my [jApex jQuery plugin|http://tylermuth.wordpress.com/2009/08/19/japex-a-jquery-plugin-for-apex/] and it's a good learning experience.
    I looked at the Yahoo BrowserPlus plugin the other day and it seems interesting. I'm curious to see what the uptake will be, as it's pretty new. Let us know how it goes as this would be a great howto for the APEX community.
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://www.amazon.com/gp/product/0071613706?ie=UTF8&tag=tylsblo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0071613706]

  • File Upload using Flash8

    I want to create a Flash page which allows user to upload
    files. The scripting language for the server would be JSP using
    tomcat.
    Can any1 tell me where I could find a tutorial in this
    matter, coz...I see php and flash interaction all around the net??
    If some1 could post the code on JSP for doing this it would hep me
    completely, since I have already done the Flash 8 upload code as
    follows:

    FileReference.upload in JSP problem
    Help !!!
    We've succesfully implemented file upload via flash in jsp
    tomcat (using FileReference.upload() in actionscript 2.0 ), but for
    some reason, parameters posted in the url to the file upload
    handling script (ej. "uploadScript.jsp?id=1") are lost, ie: the
    id=1 is lost.
    To double check flash correctly sending params , we've
    implemented the same flash object in php and parameters are posted
    fine.
    Any Ideas, I'm desperate.
    thanks.
    cC

  • OAS 4.0.8.2 File Upload

    anyone have any luck getting the file upload via pl/sql working with this ver? I got it nailed in 4.0.8.1 but no dice here...

    take a look at
    ftp://ftp.oracle.com/pub/www/otn/nt/oas/oas4082nt.zip

  • How to enable file upload in FCK Editor in CF10

    Hello there,
    We need to turn on the ability to upload a file in the fck editor, how would someone do that in ColdFusion 10?
    Thanks!

    I don't think that there are any settings in CF10 that would enable/disable file upload via CKEditor.
    I know their forum isn't the speediest way to get an answer, but have you tried asking in their tech support forum?
    ^_^

  • File upload use pl/sql with OAS 4082 and 8i/EE

    is there any way to upload/download files (any format) from web browser use FORM and above env. Don't mention samples in OAS document, it simply doesn't work. thanks.

    806675 wrote:
    I probably wrong but I interpret this as POST is not supported, http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16659/xdb22pro.htm#ADXDB5550, "Supported HTTP(S) Client Methods"
    It says:
    "+The semantics of these HTTP(S) methods is in accordance with WebDAV. Servlets and *Web services may support additional HTTP(S) methods*, such as POST.+" (my emphasis - so yes, it is supported).
    Today we are using an Appserver with HTTP mod_plsql, the code for the form looks like:
    htp.formopen (
    curl => 'FileUpload',
    cmethod => 'POST',
    cenctype => 'multipart/form-data');
    the "FileUpload" takes care of the file and inserts it in the dbThe question is how does it do it? A file upload via mod_plsql/EPG is done via the PLSQL document table. It, mod_plsql/EPG, takes cares of the actual upload part - reading the Mime stream of the upload from the browser and inserting it into the document table.
    Unfortunately, seems that the 11g documentation lacks details in this regard. Please consult the Oracle® HTTP Server mod_plsql User's Guide (10g).
    <li>section 1.7.1 describes the format of the upload table you need to define
    <li>section 1.7.4 shows a sample HTML form doing a HTTP post, and the post-process upload PL/SQL procedure that needs to be written to process the contents of the row just created for the uploaded file in the document table

Maybe you are looking for

  • HP Officejet Pro 8610 - Unable to print windows 8.1

    Hi , I've recently purchased HP Officejet Pro 8610 and unable to print from windows. I am running 64bit Windows 8.1 I can print from Web via email I can print using the HP AiO Remote app in windows. This doesnt have full functionality and is also inc

  • Delivery free of charge pricing error

    Hi Guru's, I want to give 0.5% discount to the customer for delivery free of charge.But when i am creating sales order delivery free of charge with refrence of existing sales order system is not picking up any price.is it possible to give credit memo

  • Livecycle form crashes Reader and Acrobat

    I've created a Livecycle form that has been working great. However, a user managed to corrupt it somehow and now it causes both Reader and Acrobat to freeze and then close when trying to load it. I also tried it in Nuance which causes a freeze but no

  • ISE and wireless CWA

    Need some help on this one. This is ISE 1.1.1 and WLC 7.2 I want to use CWA and Webauth for guest users, and I have configured that on the ISE and WLC. This is working but I need some clarification :-) First I tried to use AuthC policy with allowed p

  • Working between FCP and Soundtrack Pro

    I am trying to work inbetween the two programs updating music changes or video changes but am unable to get the programs to auto update when I save. Do I have to set up differently?