Uploading documents using CFFile

I am using CFFile for uploading documents using Cold Fusion 8
in my Intranet environment. Each record has a limit of 20 documents
that can be uploaded into MySQL database. It seems if I upload
mulitple documents at around 1mb it takes less than a minute to
complete. The problem seems to be when I upload muliptle documents
that are bigger.
If I attempt to upload 2 documents each over 25mb it takes
around 10 minutes.
Anyone have suggestions on alternatitve way to do this or
should I just limit size of each upload to 4mb and less?

Isn't this just a product of your internet speed and the size
of the upload?

Similar Messages

  • How to Upload documents using Gateway Service in SAP UI5?

    Hi Team,
    How to upload documents using Gateway Service in UI5 app.
    This is Attachment Functionality.using Gateway Service in Controller.JS/View.JS.
    Thanks in Advance.
    Regards,
    Satya

    Hi,
    I suggest you use the search function on scn/google...
    Anyways, here are some usefull links:
    How To Upload and Download Files Using SAP NW Gateway SP06
    Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar
    Kind regards,
    RW

  • I am trying to upload documents using Mass Transit but I am getting an Error:"[-192]" message. How can I fix this?

    I am trying to upload documents using Mass Transit but I am getting an Error:"[-192]" message. What is this error? How can I fix this?
    Thank you,

    I've never heard of that product before, but it seems to be, among other things, a 32-bit browser plugin. If that's the part you're having trouble with, quit your browser (e.g., Safari), select its icon in the Applications folder, open the info window, and check the box labeled "Open in 32-bit mode." Relaunch the browser and try again. If that doesn't help, contact the developer for support.

  • I have just purchased a MacBook Pro and iWork's. when I try to upload documents using iCloud, it now wants me to purchase iWorks for iOS ? Do I need to purchase both versions?

    I have just purchased a MacBook Pro and iWork's. When I try to upload documents using iCloud, it now wants me to purchase iWorks for iOS ? Do I need to purchase both versions?

    To be able to use documents at iCloud.com, you need at least one iOS device that uses the same account with at least one of the iWork apps installed.

  • Uploading document using Powershell is throwing error- There is no file with URL

    Hi.
    I am trying to upload multiple documents to a sub folder in a library using powershell.
    I am getting the error as : ForEach-Object : Exception calling "Add" with "3" argument(s):
    "<nativehr>0x80070003</nativehr><nativestack></nativestack>There is no file
    with URL 'server/TestLibrary/User_image/ab_3f_wht_ist_small_gif.gif' in this Web."
    I have used the below code:
    function UploadImages($weburl)
    $docLibraryName = "TestLibrary"
    $localFolderPath = "C:\Users\Imgs\user_image"
    Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
    $web = Get-SPWeb -Identity $webUrl
    $docLibrary = $web.Lists[$docLibraryName]
    $subFolderName="user_image"
    Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
    $web = Get-SPWeb -Identity $webUrl
    $docLibrary = $web.Lists[$docLibraryName]
    #Attach to local folder and enumerate through all files
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles() | ForEach-Object {
    #Create file stream object from file
    $fileStream = ([System.IO.FileInfo] (Get-Item $_.FullName)).OpenRead()
    $contents = new-object byte[] $fileStream.Length
    $fileStream.Read($contents, 0, [int]$fileStream.Length);
    $fileStream.Close();
    write-host "Copying" $_.Name "to" $docLibrary.Title "in" $web.Title "..."
    #Add file
    $folder = $web.getfolder($docLibrary.Title + "/" + $subFolderName)
    write-host "folder is " $folder
    $spFile = $folder.Files.Add($folder.Url + "/" + $_.Name, $contents, $true)
    $spItem = $spFile.Item
    Write-Host -f Green "Added Images to Library !!!"
    $web.Dispose()
    How to fix this?
    Thanks

    HI,
    Is the name of the image or the sub folder name the issue?
    I have the images with the name as "ab_3f_wht_ist_small_gif.gif".  folder name "User_image"
    There are underscores on the file name, but there is no space. When I add the file from the library (using the UI), the image is getting added.
    But adding through the powershell is giving the issue.
    I have checked this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e810ad03-81ef-4fa6-aab8-ddc896a13ebf/getting-error-during-uploading-a-document-using-powershell?forum=sharepointdevelopmentprevious
    but did not help.
    Thanks

  • Best approach for uploading document using custom web part-Client OM or REST API

    Hi,
     Am using my custom upload Visual web part for uploading documents in my document library with a lot of metadata.
    This columns contain single line of text, dropdownlist, lookup columns and managed metadata columns[taxonomy] also.
    so, would like to know which is the best approach for uploading.
    curretnly I am  trying to use the traditional SSOM, server oject model.Would like to know which is the best approach for uploading files into doclibs.
    I am having hundreds of sub sites with 30+ doc libs within those sub sites. Currently  its taking few minutes to upload the  files in my dev env. am just wondering, what would happen if  the no of subsites reaches hundred!
    am looking from the performance perspective.
    my thought process is :
    1) Implement Client OM
    2) REST API
    Has anyone tried these approaches before, and which approach provides better  performance.
    if anyone has sample source code or links, pls provide the same 
    and if there any restrictions on the size of the file  uploaded?
    any suggestions are appreciated!

    Try below:
    http://blogs.msdn.com/b/sridhara/archive/2010/03/12/uploading-files-using-client-object-model-in-sharepoint-2010.aspx
    http://stackoverflow.com/questions/9847935/upload-a-document-to-a-sharepoint-list-from-client-side-object-model
    http://www.codeproject.com/Articles/103503/How-to-upload-download-a-document-in-SharePoint
    public void UploadDocument(string siteURL, string documentListName,
    string documentListURL, string documentName,
    byte[] documentStream)
    using (ClientContext clientContext = new ClientContext(siteURL))
    //Get Document List
    List documentsList = clientContext.Web.Lists.GetByTitle(documentListName);
    var fileCreationInformation = new FileCreationInformation();
    //Assign to content byte[] i.e. documentStream
    fileCreationInformation.Content = documentStream;
    //Allow owerwrite of document
    fileCreationInformation.Overwrite = true;
    //Upload URL
    fileCreationInformation.Url = siteURL + documentListURL + documentName;
    Microsoft.SharePoint.Client.File uploadFile = documentsList.RootFolder.Files.Add(
    fileCreationInformation);
    //Update the metadata for a field having name "DocType"
    uploadFile.ListItemAllFields["DocType"] = "Favourites";
    uploadFile.ListItemAllFields.Update();
    clientContext.ExecuteQuery();
    If this helped you resolve your issue, please mark it Answered

  • Not able to upload Documents using  BAPI_DOCUMENT_CREATE2 (From SE37)

    Hi
    Not able to upload and created Document in SAP DMS Repository using Function BAPI_DOCUMENT_CREATE2.
    I'm using this BAPI directly from SE37.
    Alwasy it is giving Error - E26 253 Error while checking in and storing:c:\ZANALYSIS_PATTERN.XLS
    Inputs I have given -
    In Document Data -
    Document Type - SDC
    Document Version- 00
    Document Part - 000
    Description - TEST
    In Document Files -
    Document Type - SDC
    Document Version- 00
    Document Part - 000
    Storage Category - ZHCL_CS
    WS Application - XLS
    DocPath - C:\
    DocFile - C:\ZANALYSIS_PATTERN.XLS
    Language - EN
    CheckedIn - X
    PF_FTP_DEST - SAPFTPA
    PF_HTTP_DEST - SAPHTTPA
    DEFAULTCLASS - X
    Please advice if I had skipped something and mentioned anything wrong.
    Thanks
    Prashant

    HI,
    I am also uploading a pdf file to dms through bapi_document_checkin.
    I am getting error E26 253 Error while checking in and storing:C:\DOCUMENTS AND SETTINGS\AGARW01S\DESKTOP\10 2_VIEW 1.PDF
    Inputs I have given -
    In Document Data -
    Document Type - SPE
    Document Version- A
    Document Part - 000
    Description - UPLOAD
    In Document Files -
    Document Type - SPE
    Document Version- A
    Document Part - 000
    Storage Category - DMS_C1_ST
    WS Application - PDF
    DocPath - C:\DOCUMENTS AND SETTINGS\AGARW01S\DESKTOP\10 2_VIEW 1.PDF
    DocFile - 10 2_VIEW 1.PDF
    Language - EN
    CheckedIn - X
    PF_FTP_DEST - SAPFTPA
    PF_HTTP_DEST - SAPHTTPA
    can u please help me as it is urgent.
    Shilpa

  • How do I bulk upload documents using PowerShell and extract metadata from file name?

    I have a requirement to upload a bunch of documents into a document library. Based on the content type, the rules of updating the metadata is different...the one giving me trouble is to extract the metadata from the file name. If I have a file name like
    "part1_part2_part3.pdf" how do I extract part1, part2, part3 and tag each document being uploaded into SharePoint, using PowerShell? I have searched and have not been able to find anything to get me started.
    Has anyone done this before? Or is there a blog I can take a look at? Thanks
     

    You will have to write a PS script encompassing this logic.
    Read files from the folder using
    Get-Item cmdlet
    Determine the content type based on the path or filename.
    Split the file name to extract the tag names.
    If the metadata fields in the content type is a managed metadata field, check whether the term exists and set it.
    Updating SharePoint Managed Metadata Columns
    with PowerShell
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Error while uploading document using Link Service

    Hi
    I have created a webcenter portal application ( in jedeloper 11.1.1.4) with Link service integrated.(Database and UCM connections are intact)
    But when i click on link to new->document and click on Upload it gives a popup error saying connection to the server has failed, even though the connection exists.
    I find that the document is checked in to the UCM even after the error was thrown, and once i re-run the application it shows up the link in the dialog.
    Am i missing any configurations to be done?
    Thanks

    hi
    what is your solman version? chk the sap note
    [ Note 1401196 - Work Centers: attachment not saved in Incident Management|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1401196]
    might be this helps,
    [Message No: SKWF_SDOKERRS119|Message No: SKWF_SDOKERRS119]
    jansi

  • Can't upload documents using Adobe Send

    I did it through the browser to https://cloud.acrobat.com. I don't remember the exact wording of the error. Message. Something like "Sorry, there is an error uploading your files..." I did this a few times since AdobeSendNow became AdobeSend. Sometimes work, some doesn't. It's all by luck but I will say most of the times fail.
    Thanks for looking into this.
    Eddie

    Hi Eddie,
    (I branched your post to a new thread, as it sounds like the issue is specific to Adobe Send? Is that correct?)
    How large are the files that you're trying to upload? Can you please test your upload speed at http://testmy.net and let us know what the report shows?
    Thanks!
    Sara

  • Upload Entire Directory Using CFFILE

    I need to write an application that will allow the user to
    select all the contents of a directory on their local hard drive
    (or just point to the directory) and upload all the files in that
    directory to a location on a the web server. The user should not
    have to point to a file, just select all the contents at once.
    Does anyone know how to to so this using CFFILE? We are using
    ColdFusion 8.
    Thanks in Advance!!

    > If not, there must be a away--ColdFusion is such a great
    program, and I have
    > gotten it to do just about anything we need it to do
    except upload multiple
    > files files at once to our server...
    The files you are uploading are on the client computer.
    ColdFusion has
    *no* interaction with the client computer at all. All
    communications are
    between client and WEB SERVER. File uploads are handled by
    the client
    computer, using the provisions of the HTTP protocol, which -
    as implemented
    by a web browser - only allows for single files to be
    uploaded, via each
    file input control on a form.
    If you want multiple files to be uploaded from a client
    computer using a
    single control, you need to use something other than a web
    browser (as
    suggested by someone else: some manner of applet, perhaps
    embedded in an
    HTML document).
    The applet will pass the data to the web server, and if the
    request is for
    a mime type that the web server has been configured to pass
    to ColdFusion
    (usually a CFM or a CFC file), then the web server will pass
    the request to
    ColdFusion, which will deal with it however you tell it to.
    The problem isn't getting the files to CF; it's getting them
    to the web
    server in the first place. CF's got nothing to do with your
    problem (or,
    intrinsically, its solution).
    Adam

  • F-22, Need to upload the document using BAPI

    we have requirement to use BAPI for uploading document to f-22,
    For the BAPI when we input data all the data are correctly posted except posting keys,
    Our requirement is to use the customized posting for crediting customer and standard posting key for debiting GL account,
    We have input the required posting key in BAPI but still its not picking the posting key, its taking the standard posting key,
    Document type used is DC and DB,
    so is there any relation between document type and posting key, any idea from where BAPI is picking Posting key?

    Hello,
    it was originally not intended to use the BAPI to post
    payment documnents. For simplicity the posting keys are not
    at the BAPI's interface, instead they are defaulted with
    the standard posting keys depending on account type and debit/credit
    indicator.
    Please see note 487722 which explains how to pass addditional data
    to the BAPI in parameter EXTENSION1. You can implement the
    Business Transaction Event (BTE) RWBAPI01 to populate the posting
    key (t_accit-bschl) from EXTENSION1 parameter.
    I hope this helps!
    BR,
    Raquel

  • Viewing and uploading documents when using a business package in the portal

    DMS works fine in the ECC backend and we are able to create and view documents but when attempting to view a document via the Business Package Maintenance Supervisor or Maintenance Technician, error returns with "No originals available for the document".  we are using Enh Pack 3 but can find no configuration advice in the Business Package technical configuration.  Did a search here but could not find anything specific.  Any help appreciated

    Hi Frank,
    When you upload document into SAP DMS, you need to check-in these for storing into repository. Have you checked-in documents? if not then these documents can;t be retrieved by the system. Kindly check and revert back on this solution.
    Hope this will help.
    Regards,
    Ravindra

  • Creating a sales document using BAPI in web dynpro by uploading a file

    Hi ALL,
    Can some one help me how to create a sales document using  BAPI by uploading a file as input...Can someone  provide me a sample program....
    Thanks n Regards,
    Praveenn.
    Edited by: praveenn on Aug 23, 2011 12:42 PM

    Hi Sri,
    Thx for the response...
    Here is the code that i followed for creating a BAPI_SALESORDER_CREATE1 by uploading a text file as input.
    Just create a Attribute  in the VIEW CONTEXT of type String.
    method ONACTIONCREATE_SO .
    types : Begin of ty_data,
             sales_org  type vkorg,
             doc_type   type AUART,
             DISTR_CHAN type VTWEG,
             DIVISION   type spart,
             material   type matnr,
             partn_role type PARVW,
             PARTN_NUMB type kunnr,
           end of ty_data.
      DATA  :it_table TYPE  TABLE OF ty_data,
             i_data   TYPE  TABLE OF string,
             l_string TYPE string,
             wa_table TYPE ty_Data,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.
    DATA: wa_order_header_in TYPE BAPISDHD1,
          it_order_items_in  TYPE TABLE OF BAPISDITM,
          wa_order_items_in  TYPE BAPISDITM,
          it_order_partners  TYPE TABLE OF BAPIPARNR,
          wa_order_partners  TYPE BAPIPARNR,
          it_return TYPE TABLE OF BAPIRET2,
          wa_return TYPE BAPIRET2.
    DATA : sales_doc type bapivbeln-vbeln.
    DATA:
       node_zfinal_node  TYPE REF TO if_wd_context_node,
       elem_zfinal_node  TYPE REF TO if_wd_context_element,
       stru_zfinal_node  TYPE if_main_view=>element_zfinal_node .
    get single attribute
      wd_context->get_attribute(
      EXPORTING
      name =  'DATASOURCE'
      IMPORTING
      value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
    SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
      LOOP AT i_data INTO l_string.
       SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        wa_table-sales_org = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        wa_table-doc_type = lv_field.
        READ TABLE fields INTO lv_field INDEX 3.
        wa_table-DISTR_CHAN = lv_field.
        READ TABLE fields INTO lv_field INDEX 4.
        wa_table-DIVISION = lv_field.
        READ TABLE fields INTO lv_field INDEX 5.
        wa_table-material  = lv_field.
        READ TABLE fields INTO lv_field INDEX 6.
        wa_table-partn_role  = lv_field.
        READ TABLE fields INTO lv_field INDEX 7.
        wa_table-partn_numb  = lv_field.
    APPEND wa_table TO it_table.
      ENDLOOP.
    loop at it_table into wa_table.
    clear : wa_order_header_in.
    wa_order_header_in-sales_org   = wa_table-sales_org.
    wa_order_header_in-doc_type    = wa_table-doc_type.
    wa_order_header_in-distr_chan  = wa_table-distr_chan.
    wa_order_header_in-division    = wa_table-division.
    clear : wa_order_items_in.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-material
    IMPORTING
       OUTPUT        = wa_order_items_in-material.
    *wa_order_items_in-req_qty  = wa_table-req_qty.
    append wa_order_items_in to it_order_items_in.
    clear : wa_order_partners.
    wa_order_partners-partn_role = wa_table-partn_role.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-partn_numb
    IMPORTING
       OUTPUT        = wa_order_partners-partn_numb
    *wa_order_partners-partn_numb = wa_table-partn_numb.
    append wa_order_partners to it_order_partners.
    endloop.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
      SALESDOCUMENTIN               =
        order_header_in               = wa_order_header_in
      ORDER_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                 = sales_doc
      tables
       RETURN                        = it_return
       ORDER_ITEMS_IN                = it_order_items_in
      ORDER_ITEMS_INX               =
        order_partners                = it_order_partners.
      ORDER_SCHEDULES_IN            =
    get message manager
    DATA: l_current_controller TYPE REF TO if_wd_controller,
           l_message_manager    TYPE REF TO if_wd_message_manager.
           l_current_controller ?= wd_this->wd_get_api( ).
    DATA:  v_message_text TYPE string.
    When Sales Order is created commit the data
    IF NOT sales_doc IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING wait = 'X'.
      CONCATENATE 'Sales Document' sales_doc 'has been created.' INTO v_message_text SEPARATED BY space.
    Report Success message
      CALL METHOD l_message_manager->report_success
      EXPORTING
      message_text = v_message_text.
      ELSE.
      v_message_text = 'Error Creating Sales Order'.
    Report Error message
    CALL METHOD l_message_manager->report_error_message
    EXPORTING
    message_text = v_message_text.
    ENDIF.
    endmethod.
    Edited by: praveenn on Aug 30, 2011 2:41 PM

  • When will be possible to use iPhone for uploading documents, please this problem make me be really frustrated. Thank you

    I Try to upload a document using my iPhone but the single option is to upload pictures  please let try to fix this problem

    Its possible now, though not through Safari.
    You'll need to use a Browser that supports uploading of other files such as iCab Mobile
    https://itunes.apple.com/en/app/icab-mobile-web-browser/id308111628?mt=8

Maybe you are looking for

  • Sales Order for Free Goods

    Dear All We have a scenario where goods that are given for free to the charities need to be maintained in sales,however my client wants to treat charitable trust as Customer and they want to put a credit limit of 1000 SAR,so whenever the delivery of

  • Video Transfer from analog video camera

    New Mac user here. Anyone know how to transfer video from a video camera(that has 8mm tapes/ with RCA output jacks) to the MacBook. I know I need some type of video capture system or software. I want to ultimately put the 8mm video tapes to DVD'S. I

  • How to rpad spaces for the below code

    begin dbms_output.put_line(rpad(null,10,' ') ||'b'); end; The output is not appending spaces. I have a requirement to append spaces between columns. Some times the column will be empty. In that case the space is not getting appended.Please let me kno

  • Cast question

    * Local Function Prototypes */ myreturn xx_ioctl(dev_t, int, int, int, cred_t *, int *); <<(1) /* definition */ myreturn xx_ioctl(dev_t dev, int cmd, int arg, int flag, <<(2) cred_t cred_p, int rval_p) [snipped] (myfunc([snipped], (caddr_t)arg, [snip

  • Messages can't communicate with the account "AIM." Cannot log in to AIM. General error. Try again

    Hi, For the first time today, I've been having problems connecting to AIM using Messages. I get the "Messages can't communicate with the account "AIM." Cannot log in to AIM. General error. Try again." error. I looked at the forums here and I tried de