Developer Toolbox File Upload

I am trying to build a page to upload pdf files to my website. It is an intranet site for real estate agents. I tried making a form with a file field and then applied the Developer toolkit file upload behavior. When I try to view the page I get this error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/BusCenter/forms/formsUpload.asp, line 49
ins__forms_.setTable ""forms""
-----------------------^
Can anyone help me get this working?
Thanks!
Ben
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../Connections/conBusCenterString.asp" -->
<!--#include file="../includes/common/KT_common.asp" -->
<!--#include file="../includes/tNG/tNG.inc.asp" -->
<%
'Make a transaction dispatcher instance
Dim tNGs: Set tNGs = new tNG_dispatcher
tNGs.Init "../"
%>
<%
' Start trigger
Dim formValidation: Set formValidation = new tNG_FormValidation
formValidation.Init
formValidation.addField "fmName", true, "text", "", "", "", "Please enter a valid form name."
formValidation.addField "fmDesc", true, "text", "", "", "", "Please enter a valid description."
formValidation.addField "fmCatA", true, "text", "", "", "", "Please enter a valid catagory."
formValidation.addField "fmCatB", true, "text", "", "", "", "Please enter a valid catagory."
formValidation.addField "fmFile", true, "", "", "", "", "Please select a file to uoload."
tNGs.prepareValidation formValidation
' End trigger
%>
<%
'start Trigger_FileUpload trigger
'remove this line if you want to edit the code by hand
Function Trigger_FileUpload (ByRef tNG)
  Dim uploadObj: Set uploadObj = new tNG_FileUpload
  uploadObj.Init tNG
  uploadObj.setFormFieldName "fmFile"
  uploadObj.setDbFieldName "fmFile"
  uploadObj.setFolder "../forms/forms/"
  uploadObj.setMaxSize 2500
  uploadObj.setAllowedExtensions "pdf, txt"
  uploadObj.setRename "auto"
  Set Trigger_FileUpload = uploadObj.Execute()
End Function
'end Trigger_FileUpload trigger
%>
<%
' Make an insert transaction instance
Dim ins__forms_: Set ins__forms_ = new tNG_insert
ins__forms_.init MM_conBusCenterString_STRING
tNGs.addTransaction ins__forms_
' Register triggers
ins__forms_.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1")
ins__forms_.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)
ins__forms_.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "formsList.asp")
ins__forms_.registerTrigger Array("AFTER", "Trigger_FileUpload", 97)
' Add columns
ins__forms_.setTable ""forms""
ins__forms_.addColumn "fmName", "STRING_TYPE", "POST", "fmName", ""
ins__forms_.addColumn "fmDesc", "STRING_TYPE", "POST", "fmDesc", ""
ins__forms_.addColumn "fmCatA", "STRING_TYPE", "POST", "fmCatA", ""
ins__forms_.addColumn "fmCatB", "STRING_TYPE", "POST", "fmCatB", ""
ins__forms_.addColumn "fmFile", "FILE_TYPE", "FILES", "fmFile", ""
ins__forms_.setPrimaryKey "fmID", "NUMERIC_TYPE", "", ""
%>
<%
'Execute all the registered transactions
tNGs.executeTransactions
%>
<%
'Get the transaction recordset
Dim rs_forms_
Dim rs_forms__numRows
Set rs_forms_ = tNGs.getRecordset(""forms"")
rs_forms__numRows = 0
%>
<!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>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<% Response.Write tNGs.displayValidationRules()%>
</head>
<body>
<%
Response.Write tNGs.getErrorMsg()
%>
<form action="<%= KT_escapeAttribute(KT_getFullUri()) %>" method="post" enctype="multipart/form-data" name="fmFile" id="fmFile">
  <table cellpadding="2" cellspacing="0" class="KT_tngtable">
    <tr>
      <td class="KT_th"><label for="fmName">Name:</label></td>
      <td><input type="text" name="fmName" id="fmName" value="<%=(KT_escapeAttribute(rs_forms_.Fields.Item("fmName").Value))%>" size="32" />
          <%=(tNGs.displayFieldHint("fmName"))%> <%=(tNGs.displayFieldError(""forms"", "fmName"))%> </td>
    </tr>
    <tr>
      <td class="KT_th"><label for="fmDesc">Description:</label></td>
      <td><input type="text" name="fmDesc" id="fmDesc" value="<%=(KT_escapeAttribute(rs_forms_.Fields.Item("fmDesc").Value))%>" size="32" />
          <%=(tNGs.displayFieldHint("fmDesc"))%> <%=(tNGs.displayFieldError(""forms"", "fmDesc"))%> </td>
    </tr>
    <tr>
      <td class="KT_th"><label for="fmCatA">CatA:</label></td>
      <td><input type="text" name="fmCatA" id="fmCatA" value="<%=(KT_escapeAttribute(rs_forms_.Fields.Item("fmCatA").Value))%>" size="32" />
          <%=(tNGs.displayFieldHint("fmCatA"))%> <%=(tNGs.displayFieldError(""forms"", "fmCatA"))%> </td>
    </tr>
    <tr>
      <td class="KT_th"><label for="fmCatB">CatB:</label></td>
      <td><input type="text" name="fmCatB" id="fmCatB" value="<%=(KT_escapeAttribute(rs_forms_.Fields.Item("fmCatB").Value))%>" size="32" />
          <%=(tNGs.displayFieldHint("fmCatB"))%> <%=(tNGs.displayFieldError(""forms"", "fmCatB"))%> </td>
    </tr>
    <tr>
      <td class="KT_th"><label for="fmFile">File:</label></td>
      <td><input type="file" name="fmFile" id="fmFile" size="32" />
          <%=(tNGs.displayFieldError(""forms"", "fmFile"))%> </td>
    </tr>
    <tr class="KT_buttons">
      <td colspan="2"><input type="submit" name="KT_Insert1" id="KT_Insert1" value="Insert record" /></td>
    </tr>
  </table>
</form>
<p> </p>
</body>
</html>

Well at first you can try the ADDT support forum and not this
one. Its more likely to have a reply there.
At second, the basic question:
Are your server folders with 777 permission?

Similar Messages

  • ADDT file upload

    Hi people
    I'm making a document upload site for mainly pdf files with
    php and mysql and i'm using the developer toolbox file upload.
    I got it all to work except one thing - international
    charachters in the file names. I need to convert the signs to html
    code but how do i do it? Is it htmlentities() i should use? but
    where should i put it in the code?
    Would appreciate some help on this one - cheers.

    Better post this question to the Developer Toolbox PHP
    Application Development forum:
    http://www.adobeforums.com/webx/.3bc3909c/
    ...and if you do, I´ll provide a solution over there
    :-)

  • URGENT! File Upload Utility or a Custom UI for File Upload is needed!

    Hi all,
    I'm trying to find or develop a file upload utility or custom user interface rather than editing and adding file type item to a page. There is a free portlet for file upload in Knowledge Exchange resources, but it is for 3.0.9 release. I'm using portal 9.0.2.
    I could not any sample about the new release. Also API such as wwsbr_api that is used to add item to content areas is out dated.
    I create a page with a region for "items". When "edit" page and try to add an "file" type item the generated url is sth like this;
    "http://host:7779/pls/portal/PORTAL.wwv_additem.selectitemtype****"
    After selecting item type as a simple file autogenerated url is sth. like ;
    "http://host:7779/pls/portal/PORTAL.wwv_add_wizard.edititem"
    I made search about these API but could not find anything (in PDK PL/SQL API help, too).
    I need this very urgent for a proof of consept study for a customer.
    Thanks in advance,
    Kind Regards,
    Yeliz Ucer
    Oracle Sales Consultant

    Answered your post on the General forum.
    Regards,
    Jerry
    PortalPM

  • File upload fails if name of the file is in Japanese

    Hi all,
    I posted this message before, but could not get any response. So posting again.
    In my JSP app, I am using the latest MultipartRequest class to develop the file upload functinality through a form. Till now I was using MultipartRequest old release which was working fine for files names in English. But the new one supports international languages and therefore I am trying to use that to upload files named in Japanese. But it fails.
    Worse part is I dont get any error. But the file never reaches the desired location. I am trying to print the filenames in different Java methods just to see the progress, and I can see all the filenames/paths printed right. But the file never gets uploaded.
    Any hints?
    m_asu

    Afternoon!
    I had successfully done the same work . Besides Japanese filename, Korean and Chinese filenames are running ok.
    you should check following points:
    1. jsp's content-type:
    <META http-equiv=Content-Type content="text/html;charset=shift_jis">
    2. form's type:
    <form method="POST" name="aaaa" enctype="multipart/form-data" action = "MyServlet">
    if both points are right, perhaps you should download a new release of uploading file from http://www.servlets.com

  • Multiple File Upload Applet

    I am attempting to code a JavaBean wrapped by an applet that will upload multiple files to a web server via the multipart/form-data mime-type.
    I have moved a number of files to the web server with limited success.
    I cannot move more than roughly 30Mbs of files in any configuration without causing a fatal exception.
    I am confident that it is a limitation of the client's VM and the memory allocated to the applet.
    I have seen several commercial grade applets that claim they can move any number of files even totalling 180Mbs.
    My applet is very simple. It opens a JFileChooser dialog box, allowing the user to select multiple files and communicates directly to a server side component that accepts multipart/form-data.
    I am navigating the protocol just fine. It seems to be a memory problem on the client side. Does anyone know how I can defeat this restriction and pass a reasonably high number of files (100-200) ranging from 50Mbs to 180+Mbs?
    Secondly, why does this happen: when I put my files onto the output stream, no files move accros the stream until I call .close(). How can I write the code to begin transferring bytes as soon as I call outputstream.write(xxx)?

    i am also developing multiple file upload applet and i transferred 1,4gb of data (2 files a 700MB) successfully.
    also, i just transferred a few hundred files with total size of 900mb to my localhost webserver (~5000kb/s)
    1) open file
    2) read a few kilobytes into buffer
    3) send them to the server
    4) flush the outputstream (!!)
    5) clear buffer and goto 2)
    6) if end-of-file, close the file and flush again.
    the outputstream is flushed every few kilobytes, so it will be sent over the socket to the server and not buffered until dawn.
    i don't know how the server-side is working, but i used apache/php script.
    you can try out my applet under
    http://www.haller-systemservice.net/jupload/

  • URGENT!! File Upload Utility or a Custom File Upload UI is needed

    Hi all,
    I'm trying to find or develop a file upload utility or custom user interface rather than editing and adding file type item to a page. There is a free portlet for file upload in Knowledge Exchange resources, but it is for 3.0.9 release. I'm using portal 9.0.2.
    I could not any sample about the new release. Also API such as wwsbr_api that is used to add item to content areas is out dated.
    I create a page with a region for "items". When "edit" page and try to add an "file" type item the generated url is sth like this;
    "http://host:7779/pls/portal/PORTAL.wwv_additem.selectitemtype****"
    After selecting item type as a simple file autogenerated url is sth. like ;
    "http://host:7779/pls/portal/PORTAL.wwv_add_wizard.edititem"
    I made search about these API but could not find anything (in PDK PL/SQL API help, too).
    I need this very urgent for a proof of consept study for a customer.
    Thanks in advance,
    Kind Regards,
    Yeliz Ucer
    Oracle Sales Consultant

    Answered your post on the General forum.
    Regards,
    Jerry
    PortalPM

  • Session tracking for File Upload Servlet

    Hey Friends,
    I am developing a File Upload servlet and I need your help in certain matters .I have taken the servlet code from java-edge.com and am modifying it to give custom behaviour.I have a main page for upload (form upload)(lets call it form 1).If the file to be uploaded already exists on the server then a page is generated by the server saying that file already exists.(form 2)Now it is here(in form 2) that I want to provide an extra button which when submitted would recall the same servlet /or maybe another one and would provide the user for overriding the existing file.
    Now as per the code I would set the Override flag to be false in the second form and false in the main form .
    Given the case that it is a form based uploading servlet how do I maintain the user session when going to the next form or how do i pass the variables of the first form into second form .
    I am also facing another problem that is how do i manage multiple file uploads at a time .This basic system allows only one file per upload .
    P.S If someone could also throw some light on how to use the com.oreilly servlet (the latest version) it would be lovely but for now I want to focus on developing the current one

    Hi Jocelyn,
    I want to apologize firstly for the delay in my response.
    I was seriously bogged down due to certain circumstances and so couldnt reply.Thanks a million for your prompt reply.I'll post the Html content here and you will find the servlet code as is at the following U.R.L
    http://www.java-edge.com/Viewcode.asp?Value=serv012
    Form1:
    <HTML>
    <HEAD>
    <TITLE> Upload </TITLE>
    </HEAD>
    <BODY >
    <h2>Upload Your File!</h2>
    <form ENCTYPE="multipart/form-data" action="http://localhost:8080/servlet/Upload" method=post>
    click <b> browse </b>to select the file <br>
    <b> File:</b>
    <input type="FILE" name="Filename" value="" MAXLENGTH=255 size=50><br>
    Click here to upload!<input type=submit value=Upload>
    <input type=hidden name=Directory value="G:/Workspace/Upload/">
    <input type=hidden name=SuccessPage value="G:/Workspace/successpage.html">
    <input type=hidden name="OverWrite" value="false">
    <input type=hidden name="OverWritePage" value="">
    </form>
    </BODY>
    </HTML>
    Form 2
    <HTML>
    <HEAD>
    <TITLE> Upload </TITLE>
    </HEAD>
    <BODY >
    <h2>Upload Your File!</h2>
    <form ENCTYPE="multipart/form-data" action="http://localhost:8080/servlet/Upload" method=post>
    click <b> browse </b>to select the file <br>
    <b> File:</b>
    <input type="FILE" name="Filename" value="" MAXLENGTH=255 size=50><br>
    Click here to upload!<input type=submit value=Upload>
    <input type=hidden name=Directory value="G:/Workspace/Upload/">
    <input type=hidden name=SuccessPage value="G:/Workspace/successpage.html">
    <input type=hidden name="OverWrite" value="true">
    <input type=hidden name="OverWritePage" value="G:/Workspace/overwritepage.html">
    </form>
    </BODY>
    </HTML>
    Now in Form 2 I would add another button which when clicked would prompt the user if he wishes to overwrite the page.
    I am also posting the servlet code although I am sure u would prefer reading the one on the site
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class Upload extends HttpServlet
    static final int Max = 102400;// max. size of the file can be 100K
    String path;// stores path
    String msg;// store message of success
    //init method is called when servlet is first loaded
    public void init(ServletConfig config)throws ServletException
    super.init(config);
    if(path == null)
    path = "G:/Workspace/Upload/";
    if(msg == null)
    msg = "File successfully uploaded. Check out!";
    public void doPost(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException
    ServletOutputStream sos = null;
    DataInputStream dis = null;
    FileOutputStream fos = null;
    try
    resp.setContentType("text/plain");// return type of response is being set as plain
    sos = resp.getOutputStream();// gets handle to the output stream
    catch(IOException e)
    System.out.println(e);
    return;
    try
    String contentType = req.getContentType();// gets client's content type that should be multipart/form-data
    if(contentType!=null && contentType.indexOf("multipart/form-data")!= -1)
         // gets handle to the input stream to get the file to be uploaded from client
         dis = new DataInputStream(req.getInputStream());
         // gets length of the content data
         int Length = req.getContentLength();
         if(Length>Max)// length of the content data is compared with max size set
         sos.println("sorry! file too large");
         sos.flush();
         return;
         //to store the contents of file in byte array
         byte arr[] = new byte[Length];
         int dataRead = 0;
         int totalData = 0;
         while(totalData <Length)
         dataRead = dis.read(arr,totalData,Length);
         totalData += dataRead;
         String data = new String(arr);//byte array converted to String
         arr = null;
         // gets boundary value
         int lastIndex = contentType.lastIndexOf("=");
         String boundary = contentType.substring(lastIndex+1,contentType.length());
         String dir = "";
         if(data.indexOf("name=Directory")>0)// the type ""Directory"" is searched in the web page
         dir = data.substring(data.indexOf("name=Directory"));
         //gets directory
         // the directory higher in the directory tree cannot be selected
         if(dir.indexOf("..")>0)
         sos.println("Error- the directory higher in the directory tree cannot be selected");
         return;
         String successPage="";
         if(data.indexOf("name=\"SuccessPage\"")>0)// the type ""SuccessPage"" is searched in the web page
         successPage =data.substring(data.indexOf("name=\"SuccessPage\""));
         // gets successpage
         String overWrite="";
         if(data.indexOf("name=\"OverWrite\"")>0)// the type ""Overwrite"" is searched in the web page
         overWrite =data.substring(data.indexOf("name=\"OverWrite\""));
         overWrite = overWrite.substring(overWrite.indexOf("\n")+1);
         overWrite = overWrite.substring(overWrite.indexOf("\n")+1);
         overWrite = overWrite.substring(0,overWrite.indexOf("\n")-1);//gets overwrite flag
         else
         //overWrite = "false";
         String overWritePage ="";
         if(data.indexOf("name=\"OverWritePage\"")>0)// the type ""OverwritePage"" is searched in the web page
         // ensures same file is not uploaded twice
         overWritePage =data.substring(data.indexOf("name=\"OverWritePage\""));
         overWritePage = overWritePage.substring(overWritePage.indexOf("\n")+1);
         overWritePage = overWritePage.substring(overWritePage.indexOf("\n")+1);
         overWritePage = overWritePage.substring(0,overWritePage.indexOf("\n")-1);// // gets overwritepage
         //gets upload file name
         String file =data.substring(data.indexOf("filename=\"")+10);
         file = file.substring(0,file.indexOf("\n"));
         file = file.substring(file.lastIndexOf("\\")+1,file.indexOf("\""));
         int position;//upload file's position
         position =data.indexOf("filename=\"");//find position of upload file section of request
         position =data.indexOf("\n",position)+1;//find position of content-disposition line
         position =data.indexOf("\n",position)+1;//find position of content-type line
         position =data.indexOf("\n",position)+1;//find position of blank line
         int location =data.indexOf(boundary,position)-4;//find position of next boundary marker
         data =data.substring(position,location);// uploaded file lies between position and location
         String fileName = new String(path + dir + file);// the complete path of uploadad file
         File check = new File(fileName);
    /*************************CASE OVERRIDE ************************************/
         //String overwrite=req.getParameter("OverWrite");
         if(check.exists())// checks for existence of file
              if(overWrite.equals("false"))
                        if(overWritePage.equals(""))
                        sos.println("Sorry ,file already exists");
                        //return;
                        else
                        //overWritePage="G:/Workspace/overwritepage.html";
                        fos = new FileOutputStream(fileName);
                        fos.write(data.getBytes(),0,data.length());
                        //resp.sendRedirect(overWritePage);
                        sos.println("File Overridden");
              //return;
         File checkDir = new File(path + dir);
         if(!checkDir.exists())//checks for existence of directory
         checkDir.mkdirs();
    fos = new FileOutputStream(fileName);
    fos.write(data.getBytes(),0,data.length());
    sos.println("File successfully uploaded");
    if(check.exists())
              if(overWrite.equals("true"))
                   fos = new FileOutputStream(fileName);
                   fos.write(data.getBytes(),0,data.length());
                   if(successPage.equals(""))
                   sos.println(msg);
                   sos.println("File successfully uploaded");// if success HTML page URL not received
                   else
                   successPage="G:/Workspace/successpage.html";
                   resp.sendRedirect(successPage);
         else// incase request is not multipart
         sos.println("Not multipart");
    }//END OF TRY BLOCK
    catch(Exception e)
              try
              System.out.println(e);
              sos.println("unexpected error");
              catch(Exception f)
              System.out.println(f);
    finally
              try
              fos.close();// file output stream closed
              catch(Exception f)
              System.out.println(f);
              try
              dis.close();// input stream to client closed
              catch(Exception f)
              System.out.println(f);
              try
              sos.close();// output stream to client closed
              catch(Exception f)
              System.out.println(f);
    }//END OF DOPOST METHOD
    } //END OF CLASS
    Jocelyn the above code may have tid bit errors which u could understand.But I hope u get the overall idea of whats going on

  • Help me : Multifile upload using developer toolbox

    hi
    i m trying to build a file storage site and i did everything using developer toolbox. and now i stuck up with multifile upload using Development toolbox. please some help how to setup step by step.
    Thank you

    Make sure you are using the right java card library version (JavaCard and OpenCard version).
    Most cards only support jc2.1.2 - in opposite of the emulator which was designed for jc2.2.1.
    Jan

  • Another Dreamweaver developer toolbox question

    Hello all,
    I want to have my user login box resize itself to the div
    that I am
    placing it in.
    I am using CSS positioning for my layout and find that when
    the browser
    is resized to a smaller size the login for will overrun the
    div that it
    is contained in.
    Any ideas on how this could be corrected?
    Thanks.
    Chris

    Adobe® Dreamweaver® Developer Toolbox is a set of Dreamweaver server behaviors and commands for creating dynamic web applications using PHP, Adobe ColdFusion®, and ASP VBScript server scripting technologies. This Dreamweaver extension helps web developers create membership-based websites, as well as content management systems, CRM back-ends, and other web-based solutions without requiring advanced programming knowledge.
    If you are an advance developer than go a head this tool will really help you in all your projects.
    It has too many features which you can take advantage of. Such as : -
    - Rapid application development
    - Wizard-like interfaces
    - User interface persistence
    - Database management
    - Dynamic lists and forms for website administration
    - Upload files and images
    On Web Hosting
    - Manage database information in your browser
    - Rich Internet applications
    - Client-side form validation
    - HTML form widgets
    - Dynamic Spry datasets
    - CSS skins for a custom look
    - Fresh interfaces and CSS customizable skins
    - Multi-browser compatibility
    Reason to buy: -
    1. Increase productivity
    2. Implement client changes in minutes
    3. Visual SQL query generation
    4. Create web interfaces for database administration
    5. E-mail information you need on form submit
    6. Create file upload forms on the fly
    7. Implement solid user registration systems
    What else you want. I hope this help...

  • Dreamweaver Developer Toolbox :: Anyone Using This?

    Is anyone using the Dreamweaver Developer Toolbox? If you could share your experience with it, I'm considering the extra purchase.
    Linda

    Adobe® Dreamweaver® Developer Toolbox is a set of Dreamweaver server behaviors and commands for creating dynamic web applications using PHP, Adobe ColdFusion®, and ASP VBScript server scripting technologies. This Dreamweaver extension helps web developers create membership-based websites, as well as content management systems, CRM back-ends, and other web-based solutions without requiring advanced programming knowledge.
    If you are an advance developer than go a head this tool will really help you in all your projects.
    It has too many features which you can take advantage of. Such as : -
    - Rapid application development
    - Wizard-like interfaces
    - User interface persistence
    - Database management
    - Dynamic lists and forms for website administration
    - Upload files and images
    On Web Hosting
    - Manage database information in your browser
    - Rich Internet applications
    - Client-side form validation
    - HTML form widgets
    - Dynamic Spry datasets
    - CSS skins for a custom look
    - Fresh interfaces and CSS customizable skins
    - Multi-browser compatibility
    Reason to buy: -
    1. Increase productivity
    2. Implement client changes in minutes
    3. Visual SQL query generation
    4. Create web interfaces for database administration
    5. E-mail information you need on form submit
    6. Create file upload forms on the fly
    7. Implement solid user registration systems
    What else you want. I hope this help...

  • Tutorials on the Developer Toolbox?

    Are there some useful tutorials on the Developer Toolbox?
    I need to do two things.
    1: Insert the data into the database, upload the image into the database.
    2: Email the data and the image.
    Cheers

    Hi and welcome to the ADDT forums !
    1: Insert the data into the database, upload the image into the database
    ADDT provides an "Upload and resize images" behaviour
    (resizing is optionally of course) that´s associated with an insert or update transaction -- you´ll basically just need to provide a file field in your insert/update form and attach this behaviour to it. However, images are not stored "into the database" as BLOB, but are stored within the server´s file system.
    More information on this server behaviour is available in the ADDT help :: open the Control Panel and click the Help button. The related chapter is "Image manipulation : upload and resize images"
    2: Email the data and the image
    ADDT provides an "Send Email" behaviour
    (in several flavors BTW) which also allows attaching the file(name) that´s stored in a recordset.
    More information on this server behaviour is available in the ADDT help as well -- the related chapter is "Send Mail : Send E-Mail"
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Image / file upload error         cannot upload image even after setting write permissions

    Hi there everyone
    I am having this problem when I try to upload a file (image file) to my server
    I have a dynamic for working fine , all the other fields insert the information ok then I try to add an image upload behaviour to a file field
    When I try to upload the file I get this error
    Error:
    An error occurred while inserting the records.
    File upload error: File upload error. Error creating folder..
    File upload error. Internal error.
    Developer Details:
    tNG_multipleInsert error.
    An error occurred while inserting the records. (MINS_ERROR)
    File upload error: PHP_UPLOAD_FOLDER_ERROR
    File Upload Error. No write permissions in "../../productimages/" folder.
    (FILE_UPLOAD_ERROR)
    So I login to my server and change the write permissions to 777 and then try again and get the same message
    I have closed DW and tried again and still get the same message......
    I think I have followed all the steps correctly..... I have done the same type of forms many time and tested them locally on WAMP testing server and all work ok......
    So..... Anyone got any ideas
    Any help would be great
    Have a nice day

    On 5/17/07 4:26 PM, in article [email protected],
    "Gü[email protected]" <> wrote:
    >
    > To my experience servers behave differently -- on some I really had to use
    > 777, others are happy with 755.
    >
    > in regards to "any user" :: On most ADDT respectively MX Kollection - based
    > backends I made the image & file upload feature available to user having e.g.
    > the "levels" 1 & 2, but not 3 -- I wouldn´t expose something like this to all
    > users
    >
    > Günter Schenk
    > Adobe Community Expert, Dreamweaver
    My backend is only for admin, so they are the only ones who can access the
    upload pages. My concern is an images folder on the site being 777. Can't
    anyone from the outside plant a file in that folder if they just know where
    to find it using an ftp program? ?

  • Error while during file upload in JSF

    Hi
    I do get this error while uploading a file in JSF .
    org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:134)
         at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.getParameter(MultipartRequestWrapper.java:163)
         at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:157)
         at com.sun.faces.context.RequestParameterMap.get(ExternalContextImpl.java:673)
         at jsf.PagePhaseListener.afterPhase(PagePhaseListener.java:18)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
    Can anybody wat i must do

    thanks....
    but that answer is not solve my question. Actually i want to know.. can we develope a custom tag in JSF for file upload......

  • Error on File upload. Error processing wwv_flow.accept.

    Hi,
    I'm developing an application to upload and download files using Oracle XE 10g and APEX 3.2.0.00.27 on OS Windows XP.
    The file upload page is very simple: one file browse item, a submit button and a report based on the wwv_flow_files table.... and an extra button to save the uploaded files in the DB.
    Sometimes (almost everytime) when I press the submit button, the wwv_flow.accept process fails and I'm redirected to a page saying Internet Explorer cannot display the webpage.
    I'm forced to refresh the page and then I get the following message:
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7621 Could not determine workspace for application (:) on application accept.
    I recreated the same page in the apex.oracle.com environment and it works, but it fails in my local environment.
    I have read some posts int his forum, but I haven't found an answer yet.
    Please help!!!
    AUJ

    varad acharya wrote:
    Download the standalone OHS.
    http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html
    varadSorry about this...old post and off topic.
    Can anyone point me to a standalone version of OHS for linux x86-64? I'm having troubles finding this, it doesn't appear to have installed with 11g Enterprise Edition and I cannot find it in the available packages when I re-run the installer. I'm running 11g EPG now and want to convert to Apache.
    Thanks!!!

  • File Upload problem: JSF, IBM WPS and Portlet - Please HELP Vey Very Urgent

    I want to upload a file from the front end using JSF and Portlets deployed on IBM WebSphere Portal.
    I have used Apache's commons file upload functionality as the file upload provided in JSF doesnot work with portlets and the action event is not invoked If I keep enctype="multipart/form-data". So I included 3 forms in my Faces JSP file.
    1) h:form = For displyign error message on screen
    2) html:form = Include the enctype="multipart/form-data" and the input type file for uploading. And a submit button
    3) h:form: Here I have a command link which is remotely excuted on click of sumit button in my html form. This is to invoke the action event in the pagecode to get the bean value from the context.
    Now in the my doView method in the portlet, isMultipartContent(httpservletrequest) always returns null as the content type is text/html and not multipart. Onclick of the submit button in the the html form I am calling a javascript function which sets the __LINK_TARGET__ to the command link in the 3rd h:form which will call the page code.
    The problem here is action is invoked only when I return false from the above javascript else it will trigger for the first time and from second time onwards it will not invoke the action event in the pagecode method. Whent the javascript function returns false, the content type is always text/html. However if I return "true" from the javascript the content type is multipart/form-data, but the action is not triggered for the second time. So basically when the javascript functions returns true, for the first click everything works perfectly. When it returns false, the content type is text/html, but the action is invoked in the page code every time.
    Returning always true would solve my problem with the content type, but the action with the command link will not get invoked always as its some type of problem with h:commanLink :(.
    I guess I gave too much info. Heres my code stepby step.
    Can somebody please tell me , how I should also invoke the action in the page code and get the content type as "multipart/form-data" at the same time.
    1:
    ======================= Faces JSP File: BPSMacro.jsp ====================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="GENERATOR" content="IBM Software Development Platform">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="/WEB-INF/tld/j4j.tld" prefix="j4j"%>
    <%@taglib uri="/WEB-INF/tld/core.tld" prefix="core"%>
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1" session="false"%>
    <portlet:defineObjects />
    <link rel="stylesheet" type="text/css"
         href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'
         title="Style">
    <script type="text/javascript">
    function formSubmit() {
         var formName2 = document.getElementById("proxy_form_main_").title;
         var formName1 = document.getElementById("BPSMacroFormId").title;
         document.getElementById("__LINK_TARGET__").value = document.getElementById("proxy_HD_COMMAND_").title;
         document.getElementById(formName2).submit();
         return false;
    </script>
    <f:view>
         <hx:scriptCollector id="bpsMacroScriptCollector">
              <f:loadBundle var="bps" basename="bordereauprocessingsystem" />
              <table bgcolor="#FFF9C3">
                   <tr>
                        <td><h:form id="BPSMacroFormMain" styleClass="form">
                             <table class="tablemiddle" cellspacing="0" cellpadding="0">
                                  <tr>
                                       <td><h:messages layout="table" styleClass="errormessage"
                                                 id="ValidationErrorMsg" /> </td>
                                  </tr>
                             </table>
                             <j4j:idProxy id="proxy_form_main_0_" />
                        </h:form></td>
                   </tr>
                   <tr>
                        <td>
                        <form id="BPSMacroFormId" enctype="multipart/form-data">
                        <table bgcolor="#FFF9C3">
                             <tr>
                                  <td height="36" width="324">Worksheet <input type="file"
                                       name="upfile" /></td>
                             </tr>
                                  <tr>
                                       <td align="center" width="324"><input TYPE="submit"
                                       onclick="return formSubmit();" value="Upload">
                                  </td>
                             </tr>
                        </table>
                        </form>
                        </td>
                   </tr>
                   <tr>
                        <td>
                        <h:form id="BPSMacroFormMain2" styleClass="form">
                             <table cellspacing="2" cellpadding="2" class="tablemiddle">
                                  <tbody>
                                       <tr>
                                            <td colspan="2" align="center"><h:commandLink
                                                 styleClass="commandLink" id="lnkuserdelete"
                                                 action="#{pc_BPSMacro.doIdUpload1Action}">
                                                 <hx:graphicImageEx
                                                      styleClass="graphicImageEx" id="imgBtnCreateUser"
                                                      value="/theme/images/btnUpload.gif" style="border:0;cursor:pointer"></hx:graphicImageEx>
                                                 <j4j:idProxy id="proxy_HD_COMMAND_" />
                                            </h:commandLink></td>
                                            <h:inputHidden id="dtSize"
                                                 value="#{pc_BPSMacro.fileDetailsList.clicked}">
                                                 <j4j:idProxy id="proxy_clicked_" />
                                            </h:inputHidden>
                                       </tr>
                                  </tbody>
                             </table>
                             <j4j:idProxy id="proxy_form_main_" />
                        </h:form>
                   </td>
                   </tr>
              </table>
         </hx:scriptCollector>
    </f:view>
    ================== END: FACES JSP FILE: BPSMacro.jsp ========================
    2:
    =================== Action event in the Page Code: BPSMacro.java ============
    public String doIdUpload1Action() {
              System.out.println("PageCode");
              FacesContext context = FacesContext.getCurrentInstance();
              BPSMacroDetailsDataBean fileDetails = (BPSMacroDetailsDataBean)context.getApplication().createValueBinding("#{fileDetails}").getValue(context);
              BPSMacroListDataBean fileDetailsList = (BPSMacroListDataBean)context.getApplication().createValueBinding("#{fileDetailsList}").getValue(context);
              PortletSession sess = (PortletSession)context.getExternalContext().getSession(false);
              sess.setAttribute("BPS_MACRO_CONTEXT", context, PortletSession.APPLICATION_SCOPE);
              sess.setAttribute("BPS_MACRO_FILE_DETAILS", fileDetails, PortletSession.APPLICATION_SCOPE);
              sess.setAttribute("BPS_MACRO_FILE_LIST", fileDetailsList, PortletSession.APPLICATION_SCOPE);
              HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
              boolean isMultipart = ServletFileUpload.isMultipartContent(request);
              request.getContentType();
              return "gotoBPSMacro";
    ============== END Of Page Code Action event ==============================
    3:
    ============== doView() Portlet method ================================
    public void doView(RenderRequest arg0, RenderResponse arg1)
         throws PortletException, IOException {
              String METHOD_NAME = "doView(RenderRequest arg0, RenderResponse arg1)";
              Logger.debug(this.getClass(), METHOD_NAME, "Entering BPSMacroPortlet");
              FacesContext context = FacesContext.getCurrentInstance();      
              PortletSession sess1 = arg0.getPortletSession(true);
              BPSMacroDetailsDataBean fileDetails = new BPSMacroDetailsDataBean();
              BPSMacroListDataBean fileDetailsList = new BPSMacroListDataBean();
              context = (FacesContext)sess1.getAttribute("BPS_MACRO_CONTEXT", PortletSession.APPLICATION_SCOPE);
              if(context != null){
                   fileDetails = (BPSMacroDetailsDataBean)sess1.getAttribute("BPS_MACRO_FILE_DETAILS", PortletSession.APPLICATION_SCOPE);
                   fileDetailsList = (BPSMacroListDataBean)sess1.getAttribute("BPS_MACRO_FILE_LIST", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_CONTEXT", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_FILE_DETAILS", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_FILE_LIST", PortletSession.APPLICATION_SCOPE);
              HttpServletRequest servletRequest = (HttpServletRequest)arg0;
              PortletRequest pReq = (PortletRequest)arg0;
              HttpServletResponse servletResponse= (HttpServletResponse)arg1;
              System.out.println("\n\n Content Type" + servletRequest.getContentType());
              try{
                   if(context != null){
              boolean isFileMultipart = ServletFileUpload.isMultipartContent(servletRequest);
              System.out.println("\nFILE TO BE UPLOADED IS MULTIPART ? " + isFileMultipart);
              if(isFileMultipart){
                   FileItemFactory factory = new DiskFileItemFactory();
                   ServletFileUpload upload = new ServletFileUpload(factory);
                   List items = upload.parseRequest(servletRequest);
                   Iterator iterator = items.iterator();
                   while (iterator.hasNext()) {
                        FileItem item = (FileItem) iterator.next();
                        InputStream iStream = item.getInputStream();
                        ByteArrayOutputStream ByteArrayOS = new ByteArrayOutputStream();
                        int sizeofFile =(int) item.getSize();
                        byte buffer[] = new byte[sizeofFile];
                        int bytesRead = 0;
                        while( (bytesRead = iStream.read(buffer, 0, sizeofFile)) != -1 )
                             ByteArrayOS.write( buffer, 0, bytesRead );
                        String data = new String( ByteArrayOS.toByteArray() );
                        int k = 0;
                        //Check if the file is Refund or Premium
                        int dynamicArraySize = 0;// = st2.countTokens() * 9;
                        dynamicArraySize = st2.countTokens() * 9;
                        if (!item.isFormField() ){
                             File cfile=new File(item.getName());
                             String fileName = "";
                             String separator = "\\";
                             int pos = item.getName().lastIndexOf(separator);
                             int pos2 = item.getName().lastIndexOf(".");
                             if(pos2>-1){
                                  fileName =item.getName().substring(pos+1, pos2);
                             }else{
                                  fileName =item.getName().substring(pos+1);
                             File fileToBeUploaded=new File("C:\\Sal\\BPS MACRO\\FileTransfer\\Desti", fileName);
                             item.write(fileToBeUploaded);
                             validate.displaySuccessMessage(context);
              }catch(Exception e){System.out.println(e);
              Logger.debug(this.getClass(), METHOD_NAME, "Leaving BPSMacroPortlet");
              super.doView(arg0, arg1);
    ==== END: doView method in the portle class. ================================
    Thanks.

    one more question. Is there a way where I can submit two forms ?
    Thats is submit 2nd form only when the first form is submitted.
    I tried this it works.
    function formSubmit(){
    document.form1.submit();
    alert();
    document.form2.submit();
    But If I dont put an alert(basically it disables the parent page) in between, only the second form is submitted.
    If I put a delay of say 3 seconds in between then it will throw a SOCKET CLOSED error in the code triggered due to first form submit.
    Thus disabling the paresnt page for a few seconds is reolving my problem.
    Any ideas ?
    Well Basically when the Alert pop's up the parent page "STALLS" and thus the form2 does not submit till I click on OK, Is there a way I can stall the browser/Parent JSP page using JAVA SCRIPT ??
    Edited by: hector on Oct 9, 2007 11:09 AM
    Edited by: hector on Oct 9, 2007 2:12 PM

Maybe you are looking for

  • Zooming in a PDF Document from Web

    Hello, How can I zoom in a PDF Document from Web using Safari 2.0.4? Thank you. -HREsquivelO

  • Unable to load Applet in JSP using Tomcat 5.5.12

    Hi I am aunable to applet in jsp using Tomcat 5.5.12 and JRE 1.5. Below is the code that I am using                                    <applet                                    codebase = "."                                    archive = "WebPOSApple

  • Saving a slideshow without exporting?

    Is this possible? I want to do a few different slideshows, but I can't seem to find a way to save them without exporting. This is a pain because every time I want to make a change, I have to start over and re-export. Surely I am just missing somethin

  • Why can i watch videos online just the audio?

    on youtube the regular screen pops up to play the video but non of the options like volume or stuff show up just a blank black square,  the same thing happens with any other video on any website the only thing  that plays is the audio and im trying t

  • Alternative Free After Effects Programs To Adobe After Effects

    http://www.blender.org/ http://www.debugmode.com/wax/ http://www.cinefx.org/ Well.. I didn't see any discussion here about alternative after effects programs for free here. I was looking in a folder that I download programs to, and I came across a fe