Upload / Attach File in form

I'm new to the LiveCycle Designer, so please bare with me.
I need to design a form that will allow a user to link/attach files. When the user submits the form we would like the form to link to the documents like a hyperlink.
Please help the newbie.

Does this mean that it is possible to do the following:
1. Create an FDF that has some 'browse' fields that allow the customer to attach up to 10 files (PDF, JPG, DOC, etc.) which are then submitted with the completed FDF.
2. Using a 'submit' button on the FDF, post the FDF and customer files that they uploaded (in the FDF itself) to a URL on a website.
3. Have the website page extract the form data, write it to a database, and save any attachements to an appropriate folder. If the attached/embedded(?) files can't be saved to a folder, then have them separately emailed to a designated address.
4. Allow the customer to save the completed FDF so they have a record of exactly what they submitted.
5. Allow the customer to complete the FDF over time. E.g. spend 20mins filling out part of it today, save it, then do the rest tomorrow and submit.
Does all this sound possible?
I don't need to do this work myself (I'll get a contractor for that) I just need to know that it can be done.
Help would be greatly appreciated!

Similar Messages

  • How to Upload/Attachment File  in MYSQL    ADF???

    HEY Guys...
    How to Upload/Attachment File in MYSQL ADF???
    Regards Ninja,

    You need to provide more information.
    Which jdev version do you use?
    Which ui technology?
    I see two question to be answered:
    1) load the attatchments ADFrc af:inputFile (http://technology.amis.nl/blog/2297/adf-faces-file-uploading-it-is-really-that-simple)
    2) store the loaded data in the DB -> mysql doc or google should have the needed information
    Timo

  • Uploading excel file to form

    hi all.
    i am using forms 11g R2 and windows 7 64bit over laptop.
    i want to upload excel file to oracle form 11g r2.
    i got an error on time field here is the error.
    FRM-50022:Time must be entered in format like FXFMHH24:MI:SSdatatype is time and i used this format as a format mask in form for time field.
    fxfmhh24:mi:ss
    plz suggest me how to resolve this error?

    yup
    i am using client_ole2 and i have.
    cell_value :=Client_OLE2.get_char_property(cell, 'Value');texts and numbers are working fine but problem is in time column.Might be excel time format and forms format are not matching.
    i searched through error code on google, i did not find anything related that error.

  • Send mail witch attach files from forms server 6i

    How to attach file from my logical drive , and sending mail via forms web 6i ?

    Hi jean,
    there is a lot of complication involved with trying to attach files using the java web server, the best thing i have done was i have added a microsoft windows email component on to my form and invoked its methods and properties, for eg. for attaching a file u have something called as microsoft windows common controls which opens the file open dialog box. Remember , trying to build email and messeging kind of applications with oracle tools is a bit complicated as of now because windows 2000 server has additional security features equivalent to standard firewall and the java interface of oracle looks for certifications for each and every cgi request.
    Rajendra - [email protected]

  • Attaching files using Forms To Go

    Can anyone help with this?
    I've just been trying out forms to go so that I can easily
    validate my contact forms.
    But how do you set it up to attach files?
    I've posted a screenshot below, where it looks as tho' it's
    asking for me to select a field that should be used to attach a
    file, but the list is empty...
    Presumably I'm just missing something simple, but if anyone
    could point me in the right direction that'd be appreciated.
    Cheers,
    Iain
    screenshot

    I've never used Forms to Go .. but your screen shot looks as
    though one
    would click that paper clip to open a dialogue box to browse
    to the file to
    attach and after doing that, the file name would appear in
    the window that
    is now empty? Did you try that?
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Iain71" <[email protected]> wrote in
    message
    news:e8h9jh$499$[email protected]..
    > Can anyone help with this?
    >
    > I've just been trying out forms to go so that I can
    easily validate my
    > contact
    > forms.
    >
    > But how do you set it up to attach files?
    >
    > I've posted a screenshot below, where it looks as tho'
    it's asking for me
    > to
    > select a field that should be used to attach a file, but
    the list is
    > empty...
    >
    > Presumably I'm just missing something simple, but if
    anyone could point me
    > in
    > the right direction that'd be appreciated.
    >
    > Cheers,
    > Iain
    >
    >
    http://www.handprintdvd.co.uk/attach.htm
    >

  • Problem in uploading attachment files through automation scripts using Oracle Application Testing Suite(OATS)

    I am using OATS tool for writing automation scripts to test a web-based application . But I am facing problem when the requirement is to upload any file from the system to that web application .
    Actually the behavior of the script or I guess of OATS is inconsistent as the attachment file is getting upload sometime and
    fails to do so at the other time .
    I have observed a strange case also ,i.e whenever i am executing the scripts while sharing my system screen on webex meeting
    then the attachment upload results in failure . What can be the proper solution for doing file upload using automation script ??

    Can you please check whether the sync has been taken care before performing the upload operation. If the sync is taken care then the upload should work always

  • Attaching files to forms, can anyone help me?

    I would like the ability to give our clients the ability to attach documents to forms.  I am by no means a developer, so the easier the better
    Can anyone assit me in the process.
    Thank you,

    As it stands, the free Adobe Reader doesn't have this capability (Acrobat does, but its not free).  With the LiveCycle Reader Extensions server product you can add this capability on a document by document bases so users with free Reader can do it.  Basically you pay for it at the server end so the users don't have to pay for it at the client end.
    The Acrobat product has the ability to add some reader extensions (not as many as the LiveCycle product), but there are limits in the EULA on how may Reader users can use the Acrobat extended documents.
    I don't believe Adobe allows plugins to circumvent the Reader restrictions.  There is no patch because it is not a bug - its the way the software was designed.

  • Uploading a file from form using Jsp to webserver

    WE tried to upload a file to a webserver. We tried different ways that we got code from this forum.
    but unable to access the data sent from the browser.
    Plssss go thro the code and let us know what the problem is.......
    <%
    try
    ServletContext context = getServletContext();
    InputStream mySis = request.getInputStream();
    out.println(mySis.available());
    BufferedReader r = new BufferedReader(new InputStreamReader(mySis));
    String line = null;
    StringBuffer buf = new StringBuffer();
    while ((line = r.readLine())!=null) {
         out.println(line);
              buf.append(line);
    out.println("********PRINT");
         out.println(buf.toString());
         }catch(Exception ee){out.print("error");}
    %>
    We also tried the code posted in this forum
    InputStream mySis = request.getInputStream();
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    do
    myCurrentByte = mySis.read();
    bos.write(myCurrentByte);
    Appreciate ur help.

    use the FileUpload package. it's part of the jakarta commons packages. works great, decent docs. I use it in several production systems.

  • Attaching Files to Forms

    Is there a way to attach a file to a form in FormsCentral if you import a form of your own? I can only find information on how to allow file attachments on a form you create in FormsCentral.

    Hi;
    No there is not.  Attachments are not supported in PDF by FormsCentral, so if you create a form in FormsCentral and distribute both as HTML/web form and as PDF the web form would support attachments but the PDF would not.  When you import a PDF into FormsCentral the only option for distribution is PDF which does not support attachments.
    Thanks,
    Josh

  • I cant upload attached files

    I attach a file to upload and it doesnt go thru. I get a message:
    not sent technical problem
    I use aol 1.7

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • Shopping cart attachment file

    Hi
    Can you tell me where the attachment file for shopping cart & RFC is saved in SRM?
    I uploaded attachment file from SRM portal but not sure where its stored now.
    Table BBP_PDATT has only attachment information. but where the physical file stored?
    I have configured SAP content server in CSADMIN/OACT. but how did SC document recognize content server?
    Pls advice
    regards
    Chandra

    Hello Masa
    Thanks for your reply. I observed as below
    Can you clarify two points
    1) First I created shopping cart in SRM portal with attachment. but i could not see table BBPCONT
    BBP_TRANSCONTENT is updated. There is no increase in number of entries in table.
    But i can see the attachment info is stored in BBP_PDATT table except physical file content.
    Where does it store now?
    2)To configure contentserver, I used below setting for content server as u said.
    and save the attachment in shopping cart. how to find its stored in content server?
    BBPFILESYSTEM
    Documnt area is EBP document area(should i have to use Document management system?)
    Storage type as HTTP Content server
    Content table changed as  ContentServer/ContentServer.dll
    Also can you tell me whether storage category has to be defined for cotnent repository?
    Pls advice.
    Regards
    Chandra
    Edited by: princeck on Feb 16, 2011 7:07 AM

  • Attaching files directly from Photostream on PC

    Hello -
    Photostream appears to be working fine on my PC and between my iPad 2 and iPhone 5.  The issue I have is that while I can browse thumbnails, run slideshows, etc. on my photostream, if I wish to upload a file I have to first copy aand paste the image to a non-photostream location.  I.e. I can't upload / attach directly from photostream.
    Does anyone know how to upload / attach files to an application (e.g. gmail) directly from photostream?  I've had no luck with searches on this matter.
    Thanks in advance
    John

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • How can user attach file to interactive form, and be read by abap program?

    Hello,
    I created an abap interactive form, sent to the user, then user fills out the form fields, then it is uploaded back to sap, then my program reads this data and process it.
    It works.
    Now I want users to be able to attach any file they want, and the abap program to extract this file out of the PDF, to put it into SAP (or anywhere).
    I succeeded in attaching a file, I can "see" it via function module get_annotations, but I get the file in compressed form by Adobe (filter="FlateDecode").
    Do you know how to unzip the file, or is there another way to attach files in adobe reader/extract them via abap?
    I use acrobat reader 8.1.2
    Thx a lot!
    sandra
    Below is the xml obtained by GET_ANNOTATIONS. We see that there are other text annotations, and that the attached file has {length="98005"}, though real file (before "attach file" to the PDF, and also after "detach file") has length 111 995 bytes. It's why I deduced that there is a compression (I also tried to extract it as-is and open it with adobe but it doesn't work.
    <?xml version="1.0" encoding="UTF-8"?>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
      <annots>
        <highlight rect="212.347,624.257996,252.979004,636.539978" creationdate="D:20080604100938+02'00'"
    name="2114308b-275d-4eca-8bfc-c8288ef4a77c" color="#FFFF00" flags="print"
    date="D:20080604100938+02'00'" title="mtresori" subject="Texte surligne "
    coords="215.432999,636.179016,249.893005,636.179016,215.432999,624.619019,249.893005,624.619019"
    page="0">
          <popup rect="595.276001,516.179016,775.276001,636.179016" flags="print,nozoom,norotate"
    open="no" page="0"/>
        </highlight>
        <fileattachment rect="15.345001,802.841003,29.345001,822.841003"
    creationdate="D:20080604101011+02'00'" name="f6e12648-c9b0-4cd1-b08b-82876c8300d7"
    color="#4055FF" flags="print,nozoom,norotate" date="D:20080604101019+02'00'" title="mtresori"
    subject="Piece jointe" file="SAP_WIDGETS2.pdf" mimetype="application/pdf"
    creation="D:20080603112937+02'00'" modification="D:20080603112937+02'00'" size="111995"
    checksum="9F846412B510089F7C6DBCC6527C6339" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>SAP_WIDGETS2.pdf</p>
            </body>
          </contents-richtext>
          <data MODE="raw" encoding="hex" length="98005" filter="FlateDecode">
    4889CC570B5414D719F651A38EC468D5C6A2980104E528BBF3B8F3B2626405242920020A0AA4AEBB
    C3B2BAECEAEEA2A018030A628C8FFA4A0F568F58426A1EF5118FB5266A8D9AA2B16A55044541C5
    A62656EBA315935AE8BDB3BBEC2C0BD9D5B39EB3671966FEFBFCE6BF
    ETC. (all hexa code is the attached file, but with compression by adobe)
          </data>
        </fileattachment>
        <text rect="96.187408,680.099976,116.186996,698.099976" creationdate="D:20080613144537+02'00'"
    name="73360fcf-f5e5-4d5b-9315-fe4c42924300" color="#FFFF00" flags="print,nozoom,norotate"
    date="D:20080613144617+02'00'" icon="Comment" title="srossi" subject="Note" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p dir="ltr">
                <span dir="ltr" style="font-size:10.0pt;text-align:left;color:#000000;
    font-weight:normal;font-style:normal">
    ffffffffffffffffffffff
                </span>
              </p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,578.099976,775.276001,698.099976" flags="print,nozoom,norotate"
    open="yes" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144627+02'00'" state="Marked"
    name="d524b7d5-1a85-4b62-80b3-5875dd152c51"
    color="#FFFF00" flags="hidden,print,nozoom,norotate" date="D:20080613144627+02'00'"
    icon="Comment" title="srossi" subject="Note"
    inreplyto="73360fcf-f5e5-4d5b-9315-fe4c42924300" statemodel="Marked" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Marked definie par srossi</p>
            </body>
          </contents-richtext>
          <popuprect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144633+02'00'" state="Accepted"
    name="88af2cb6-7516-4f21-81e6-97edc7a85184"
    color="#FFFF00" flags="hidden,print,nozoom,norotate" date="D:20080613144633+02'00'" icon="Comment"
    title="srossi" subject="Note" inreplyto="d524b7d5-1a85-4b62-80b3-5875dd152c51" statemodel="Review"
    page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144642+02'00'" state="Marked"
    name="a8c6b485-c3f9-44e2-ad53-c61b2766d9d5" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144642+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="f6e12648-c9b0-4cd1-b08b-82876c8300d7" statemodel="Marked" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Marked definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144647+02'00'" state="Accepted"
    name="0136b689-575c-46b8-a21a-86e3c8d73904" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144647+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="a8c6b485-c3f9-44e2-ad53-c61b2766d9d5" statemodel="Review" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144657+02'00'" state="Accepted"
    name="a21fc3c5-cf6a-4c6f-bc1f-328a91050b4e" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144657+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="2114308b-275d-4eca-8bfc-c8288ef4a77c" statemodel="Review" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
      </annots>
      <f href="acTempF-00000028453-00000000089"/>
      <ids original="03473EFED11DB2110A00000000000000" modified="959796E85292D54DB7FA558CAAD4A346"/>
    </xfdf>

    Hello everybody,
    I am sure you have an answer to my question above. It was :
    how is it possible for a user to ATTACH files to a PDF interactive form, and then be able to READ them via a program ? (I guess the solution to read them via ABAP or JAVA is quite the same?)
    Thx a lot !
    sandra

  • How can I add file attachment to my form and get the attachment by email?

    I'm using this code and it works fine, but I don't get the attachment file in the email. How can I add this to my code?
    HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
    <script src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js" type="text/javascript"></script>
    <script type="text/javascript">// <![CDATA[
                  $(document).ready(function() {
                    $("#form1").validate({
                      rules: {
                        first: "required",// simple rule, converted to {required:true}
                        email: {// compound rule
                        required: true,
                        email: true
                      last: {
                        last: true
                      comment: {
                        required: true
                      messages: {
                        comment: "Please enter a comment."
    // ]]></script>
    <script type="text/javascript">// <![CDATA[
    function validate ()
              if (document.form1.first.value == "")
              alert("Please enter your First Name");
              document.form1.first.focus();
              document.form1.first.style.border="1px solid red";
              return false;
              else if (document.form1.last.value == "")
              alert("Please enter your Last Name");
              document.form1.last.focus();
              document.form1.last.style.border="1px solid red";
              return false;
              else if (document.form1.emailaddress.value == "")
              alert("Please enter your Email Address");
              document.form1.emailaddress.focus();
              document.form1.emailaddress.style.border="1px solid red";
              return false;
    function has_focus() {
        if(document.form1.first.value == "")
                                  document.form1.first.focus();
                                  document.form1.style.first.border="1px solid green";
    function set_focus(x)
              document.getElementById(x).style.border="1px solid #80CA75";
    function clear_focus(x)
              document.getElementById(x).style.border="1px solid #DBDFE6";
    // ]]></script>
    </head>
    <body>
    <p><span style="color: #666666; text-align: center; font-size: 13px;">Please complete this form if you have any technical issue.</span></p>
    <form id="form1" action="http://www.southsun.com/php/tech_issue.php" enctype="multipart/form-data" method="post">
    <table style="width: 850px; font-size: 15px; padding-left: 20px; text-align: center;" border="0">
    <tbody>
    <tr>
    <td style="text-align: left; padding-bottom: 20px;" colspan="2">
    <h2><span style="color: #666666;">Please complete this form if you have any technical issue.</span></h2>
    </td>
    </tr>
    <tr style="padding-top: 40px;">
    <td style="text-align: left;"><span style="color: #abaf6f;"><strong>First Name</strong>:*</span><input id="first1" name="first" type="text" />  <br /><br /> <span style="color: #abaf6f;"><strong>Last Name</strong>:*</span><input id="last1" name="last" type="text" /><br /><br /> <span style="color: #abaf6f; padding-right: 33px;"><strong>Email</strong>:</span><span style="color: #abaf6f;">*</span><input id="email1" name="email" type="text" /><br /><br /> <span style="color: #abaf6f;"><strong>Shipping Method:</strong><br /></span> <input name="shippingmethod" type="radio" value="prioritymail" /> Priority Mail                                                                 <input name="shippingmethod" type="radio" value="store" /> In Store Pick up <br /> <input name="shippingmethod" type="radio" value="ground" />  Ground                                                                       <input name="shippingmethod" type="radio" value="3day" /> 3 Day Select<br /><br /> <span style="color: #abaf6f;"><strong>Payment Method:</strong><br /></span> <input name="paymentmethod" type="radio" value="paypal" /> Paypal Method                                                       <input name="paymentmethod" type="radio" value="creditcard" /> Credit Card<br /> <strong><br /> <span style="color: #abaf6f;">If getting an error message, please explain the error:</span></strong><span style="color: #abaf6f;"> <br /></span> <textarea id="errormessage" cols="20" rows="2" name="errormessage"></textarea><br /><br /></td>
    <td style="border-left: 1px solid grey; padding-left: 40px; text-align: left;"><span style="color: #abaf6f;"><strong>If using Paypal, Were you redirected successfully?</strong><br /></span> <input name="paypalredirect" type="radio" value="yes" /> Yes                                                                 <input name="paypalredirect" type="radio" value="no" /> No<br /><br /> <span style="color: #abaf6f;"><strong>If using Credit Card, Did you get an error?</strong><br /></span> <input name="carderror" type="radio" value="yes" /> Yes                                                                  <input name="carderror" type="radio" value="no" /> No<br /><br /> <span style="color: #abaf6f;"><strong>What happened after clicking place order? </strong><br /></span> <textarea id="placeorder1" cols="20" rows="2" name="placeorder"></textarea><br /><br /> <span style="color: #abaf6f;"><strong>Comments</strong>: <br /></span> <textarea id="comments1" cols="20" rows="2" name="strcomments"></textarea><br /><br /> <span style="color: #abaf6f;"><strong>Attach PrintScreen</strong>: <br /></span> <input name="strresume" type="file" />
    <div style="height: 50px;"> </div>
    </td>
    </tr>
    <tr>
    <td style="padding-top: 20px;" colspan="2">( * ) indicates required fields</td>
    </tr>
    <tr>
    <td style="text-align: center; padding-top: 20px;" colspan="2"><input class="button" name="submit" type="submit" value="Submit" />                        <input class="button" name="reset" type="reset" value="Reset" /></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body></html>
    PHP
    <?php
    echo $savestring;
    //--------------------------paramaters--------------------------
    // Subject of email sent to you.
    $subject = 'prueba con uploads';
    // Your email address. This is where the form information will be sent.
    $emailadd = '[email protected]';
    // Where to redirect after form is processed.
    $url = 'http://www.pch-graphicdesign.com';
    // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
    $req = '0';
    $target_path = "http://www.pch-graphicdesign.com/php/uploads/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
    $text = "Results from form:\n\n";
    $space = ' ';
    $line = '
    foreach ($_POST as $key => $value)
    if ($req == '1')
    if ($value == '')
    {echo "$key is empty";die;}
    $j = strlen($key);
    if ($j >= 20)
    {echo "Name of form element $key cannot be longer than 20 characters";die;}
    $j = 20 - $j;
    for ($i = 1; $i <= $j; $i++)
    {$space .= ' ';}
    $value = str_replace('\n', "$line", $value);
    $conc = "{$key}:$space{$value}$line";
    $text .= $conc;
    $space = ' ';
    mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
    echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
    ?>

    Sending a file as an attachment to an email involves setting the correct MIME type and headers. There's a brief tutorial here: http://webcheatsheet.com/php/send_email_text_html_attachment.php.
    Also, you need to use the same name as in your form. In the script you have shown here, the name of the file field is strresume, but your processing script uses this: $_FILES['uploadedfile']['name']. It should be this: $_FILES['strresume']['name']

  • Post Migration from SP2010 -Attach File Button not working in any list new/edit forms

    Hi,
    We have migrated the SharePoint 2010 farm to Sharepoint 2013 on last saturday and we are noticing an interesting issue after the migration .
    On any custom list on any web application ,When we create a new item,if we click on attach file button in the ribbon,nothing shows up on the screen.
    In the browser Dev Tools its showing an error message as "Cannot read Property style of null".
    This is happening on a javascript (form.debug.js) on line No : 5276
    (document.getElementById("partAttachment")).style.display = "block";
    There is no element rendered in html with id "partAttachment",which is causing this error to happen.
    Solutions tried are
    1) Modified the List Advanced Settings to disable and enable the attachments ,which did not work
    2) Ran the Sharepoint Configuration wizard which did not fix 
    3)Tried reset the site definition for all pages in the site from site settings
    4) Deactivated and activated all the activated features in the site collection
    Its an OOB List New Form,no customizations has been done.
    Similar error occurring with List Edit form as well
     when you click on the List Item in the List default view when you navigate to the list and when you click on attach file,a popup dialog to upload attachments appearing,However its not working when you
    navigate into the list item and tried to upload attachment.
    Please help if any Solutions / thoughts 

    Hi Christopher,
    Thanks for your reply,
    Farm Information
    OS: Windows Server 2008 R2 SP1 Enterprise
    SQL: SQL 2008 R2 SP2 
    SP -SharePoint 2013 with no CU applied
    Method,we used is restored the content DB from SP2010 and attaching to SP2013 SQL Server
    Site Collection is in 15 mode
    It happens on new site collection even though its not migrated site.
    Server is 16GB RAM 8Core Processor
    If we create a new form from designer,attach file link is working
    OOB New form.aspx is having List Form webpart
    Custom New Form.aspx creaed with designer has data form webpart
    if we create a new sharpoint site collection in 2010 mode,its working fine without any issues
    Interestingly,all the javascript files loading were debug.js,Not sure how its loading all debug.js files

Maybe you are looking for