Flex Uploading Issue

Hi,
I am having great trouble with Flex and ColdFusion when it
comes to
uploading. I can upload fine to a server with no
authentication set
up but as soon as I start to upload using FileReference and
UrlRequest to a server with authentication from cflogin
problems
occur. Basically it fails silently, it displays progress in
the
upload and that the upload was successful but my files is not
there.
I have check all my scripts and location for the file upload
and it
just aint happening. I have tested a simple cfm upload form
and hit
that fine, uploaded and can write to files also on the remote
server
so I know thats set up fine.
So after much googling I have found that when using
FileReference for
uploading the upload will use a new browser session to upload
the
files and therefore remove all session variables!!! Arrrrggh!
So my
work around has involved grabbing the session.URLToken,
sending that
into my Flex app and then when I call the upload cfm script
pass the
session.URLToken variables in the url string like so:
request = new URLRequest();
chosenFile = fr.name;
request.url = UPLOAD_URL+"?"+sessionVars;
Problem is it still doesnt work?
(a) I dont know if that is enough to satisfy cflogin criteria
i.e. do
I need to set anything in the upload.cfm page to say that
these are
the session variables.
(b) another weird thing is that if it is starting a new
browser
session why am I not presented with my login panel as
requested by my
Application.cfc?
Any one else suffered here or could make a suggestion please
Simon
P.S. I understand this is not an issue in IE only Firefox
(and Safari I have discovered)!

This is most peculiar cos I am definitely not hitting the
server side script (which I thought was due to session clearing)
but may not be then cos I get no error like you state and also my
login window doesn't rear its ugly head. But I DO know for certain,
the server script is not being hit, cos I run a simple write action
to append a log file and that is not even running???
And yeh uploading from a mac os x system. However, it fails
in FireFox on the PC also.
See:
post
91
Check this:
quote:
Through Flash's FileReference and FileReferenceList classes,
you can create a powerful file uploader that allows the user to
upload multiple files with a single form element. But beware:
unless the user happens to be using IE, the upload will use a new
browser session to upload the files. This means that if you require
that a user be authenticated before uploading something (and you
better be), the upload won't work - the request will be forwarded
to the login form, or to wherever your system forwards unauthorized
requests. This is a maddening bug to track down, and there is
nothing you can do to make Flash use the right session. The work
around is to send the session cookie in the url and, on the server
side, use that to override the new (and wrong) session cookie sent
by Flash

Similar Messages

  • PL20 flexi upload issue

    Hi All,
    When we uploaded the file using flexi upload for posting level 20, system is reading the data properly but at the same time system is posting correction reversal entries for the same. Eg if i'm uploading the file with 100 INR system is posting the amount and again system is posting the correction document for -100 INR. Kindly help us in resolving this issue.
    We have created a flexi upload for PL20 entries, in which we created a seperate method and task for the same. And in task we have defined the processing type as two sided, created a field catalog in flexible upload. Please let us know if you need further details.
    Regards,
    Magesh

    Hi Collet,
    In Task, we use cons freq- monthly, proc. type two sided, cons. group- all values. In method we have defined DCP flexible upload w.r.t method and doc. type. In flexible upload field category we have defined the respective fields as per the manual journal entry screen.
    Yesterday only i configured flexi upload for PL20. In my total records during the first PL20 flat file upload, items were reversed with text CORR and in which most of the amount are w.r.t clearing a/c.
    Kindly let me know if you want further details.
    Regards,
    Magesh

  • Flex Module issue with Panel

    Hello everyone. I have the following problem.
    In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on).
    Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.containers::Panel/layoutChrome()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\Panel.as:1405]
    at com::CollapsableTitleWindow/layoutChrome()[D:\Flex 3 Workspace\WesobCrm\src\com\CollapsableTitleWindow.as:216]
    at mx.core::Container/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2867] (...)
    Indicates that the main applications have object Panel
    Please help.
    P.S. I found a similar problem on http://www.nabble.com/Flex-Module-issue-with-Panel-td20168053.html
    ADDED: I extendes the Panel class and do something like that:
    override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
                    use namespace mx_internal;
                    if(!(mx_internal::titleBarBackground is TitleBackground)) {
                            mx_internal::titleBarBackground = new TitleBackground();
                    super.layoutChrome(unscaledWidth, unscaledHeight);                     
    But now i had something like that: Before After
    You can see that it loos style declaration.H

    Thanks for the anserw.
    I don't exacly understand all but i found a solution for my problem and it works.
    Could you tell me if this is ok ?
    I Add in my main app
    public function getProductWindow():ProductWindow {
        return new ProductWindow();
    And in the module i change
    From var productWindow:ProductWindow = new ProductWindow();
    To var productWindow:ProductWindow = Application.application.getProductWindow();

  • File Filter on Flex Uploader

    Hi,
    I would just like to ask for some help regarding my flex
    uploader. My problem is I can't filter the file types when i am
    uploading. For example I only wanted to see image files (.jpg,
    .png, .gif) when browsing files to upload but instead I always get
    All file types. Here's my code just in case you need it.
    thanks a lot. any feedback would be very much appreciated.

    I'm thinking you can file the following under "obvious", so
    excuse if it is...
    if you only want to see the image file types you mentioned,
    you'd have to remove the other file types (*.swf, *.bmp) passed to
    the FileFilter constructor. Also, you want to pass an Array to the
    browse() function, so use the following in your addFiles()
    function:
    _refAddFiles.browse(filesToFilter);
    and not
    _refAddFiles.browse(imageTypes);
    On Windows you'll get only the file types listed in the
    dialog box and on a Mac you'll see all files, but only the file
    types listed will be selectable, the others are grayed out. Don't
    know what it looks like on Linux.
    TS

  • Uploading issues to other providers than .mac

    has anyone had uploading issues to other providers than .mac??

    can the names of the pages have spaces in them, or do
    i have to change both the file name and the name of
    the page?
    As the note says, some servers will let you upload files with spaces in their names, and some will not. Names without spaces will always work.
    In iWeb, the name you give to a site or page is the same as the name of the folder or file associated with it. So to avoid spaces in folder or file names, you need to omit them in the site and page names, or replace by hyphen or underscore.

  • Flex performance issues

    hi
    By using an mvc architecture ,is it possible to overcome Flex performance issues...???
    Thanks
    Saritha S

    Excuse me ? If you develop a large scale application, you had better use a MVC architectural framework (with or without dependency injection) and additional design patterns like the presentation model. Otherwise, you will end up with code complexity as you try to overcome the inevitable structural problems as the application grows and THIS will end up in performance degradation.
    -          Run the profiler to identify bottlenecks and memory leaks: number of instances of a given class, execution time of methods, memory usage … E.g item renderers
    -          How much data is loaded, processed and displayed at any one time can have a big impact on performance. Reduce the amount of data: paging via parameter to the service
    -          Reduce the layout complexity: remove containers so nestLevel <= 4
    -          Remove event listeners: addEventListener () calls with corresponding removeEventListener() calls (do not use addEventListener() with weak reference as it decreases performance)
    -          Deferred instantiation of UIComponents (e.g Viewstack children) aka lazy instantiation
    -          Garbage collection: check Grant Skinner’s checklist
    -          Interrupted execution of complex functions (especially when looping on a large data set): the function monitors its execution time and yields (returns) when the current call exceeds a given duration (usually, that of a frame at 24 fps, which is the default Flex framerate). It is called again on the next frame and so on and so forth until processing is complete. You can use callLater() for that.
    -          Lazy loading of data
    -          Use more efficient code. Favour re-use of existing code in the Flex framework rather than re-writing what exists. Favour simple solutions over complex ones when possible.
    -          UID getter/setter in DTOs for improved performance in sorting / filtering of Array Collections
    -          Too many data bindings decrease performance. Mainly use data binding to bind views to the presentation models. Use the ChangeWatcher class or direct assignment of values when possible.
    -          Limit the number of calls to setStyle(). Use style declarations in CSS when possible.

  • How does flex upload works

    Hi,
    I have created a flex web application with php server side support. There is a file upload functionality in this webside. When I'm uploading a file using flex upload controller does it uses a huge amount of memory from the client machine that uploads the file? and how does flex controller transfer the file to server (upload the whole file at once, upload as chunks) ?
    Cheers!! 

    Hi,
    Refer links:
    http://download.oracle.com/docs/cd/B19306_01/em.102/b16227/oui8_opatch.htm
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/e15294/prereq_checks.htm
    http://avdeo.com/2008/08/19/opatch-utility-oracle-rdbms-patching/
    thanks,
    X A H E E R

  • LR 4/4.1RC and flickr uploading issues - resolved?

    Have the uploading issues between LR 4/4.1RC and flickr been resolved?  Waiting on upgrading from LR3, but the forum reports from unhappy flickr users wanting to "downgrade' are making me nervous.  Should I wait, just upgrade to 4.0 and leave the RC alone for now?  

    An update ...
    I have discovered that RC2 publishing does seem to be working (for me) but Flickr or LR seems to be objecting ("Invalid at the top level of the document") to specific images possibly relating to the contents of the caption field.
    I narrowed down the failure to just one image ... removed its caption... it published, I put the caption back on - "Invalid ..." error came back.
    FYI and not sure if relevant - I sometimes put http links in my caption fields.
    I would have come back with a more comprehensive test, but it now appears that LR will not communicate with Flickr at all, now saying it cannot contact the Flickr service, so I cannot investigate further yet.
    I know a little off the wall here ... but is it conceivable that Flickr itself has locked me out due to "erroneous" or suspicious content?     I have never had problems with LR talking to Flickr before today and publishing to SmugMug is still working fine.  

  • Flex file upload issue with large image files

         Hello, I have created a sample flex application to upload an image and also created java servlet to upload and save image and deployed in local tomcat server. I am testing the application in LAN. I am able to upload small as well as large image file(1Mb) from some PCs but in some other PCs I am getting IOError while uploading large image files however it is working fine for small images. Image uploading is hanging after 10%-20% and throwing IOError. *Surprizgly it is working Ok with XP systems and causeing issues with Windows7 systems*.
    Plz give me any idea to get a solution.
    In Tomcat server side it is giving following error:
    request: org.apache.catalina.connector.RequestFacade@c19694
    org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:371)
            at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.ja va:126)
            at flex.servlets.UploadImage.doPost(UploadImage.java:47)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
            at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:594)
            at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStre am.java:982)
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:8 86)
            at java.io.InputStream.read(InputStream.java:101)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:96)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:66)
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:366)
    UploadImage.java:
    package flex.servlets;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.util.regex.*;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.*;
    import sun.reflect.ReflectionFactory.GetReflectionFactoryAction;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class UploadImage extends HttpServlet{
             * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
             *      response)
            protected void doGet(HttpServletRequest request,
                            HttpServletResponse response) throws ServletException, IOException {
                    // TODO Auto-generated method stub
                    doPost(request, response);
            public void doPost(HttpServletRequest request,
                            HttpServletResponse response)
            throws ServletException, IOException {
                    PrintWriter out = response.getWriter();
                    boolean isMultipart = ServletFileUpload.isMultipartContent(
                                    request);
                    System.out.println("request: "+request);
                    if (!isMultipart) {
                            System.out.println("File Not Uploaded");
                    } else {
                            FileItemFactory factory = new DiskFileItemFactory();
                            ServletFileUpload upload = new ServletFileUpload(factory);
                            List items = null;
                            try {
                                    items = upload.parseRequest(request);
                                    System.out.println("items: "+items);
                            } catch (FileUploadException e) {
                                    e.printStackTrace();
                            Iterator itr = items.iterator();
                            while (itr.hasNext()) {
                                    FileItem item = (FileItem) itr.next();
                                    if (item.isFormField()){
                                            String name = item.getFieldName();
                                            System.out.println("name: "+name);
                                            String value = item.getString();
                                            System.out.println("value: "+value);
                                    } else {
                                            try {
                                                    String itemName = item.getName();
                                                    Random generator = new Random();
                                                    int r = Math.abs(generator.nextInt());
                                                    String reg = "[.*]";
                                                    String replacingtext = "";
                                                    System.out.println("Text before replacing is:-" +
                                                                    itemName);
                                                    Pattern pattern = Pattern.compile(reg);
                                                    Matcher matcher = pattern.matcher(itemName);
                                                    StringBuffer buffer = new StringBuffer();
                                                    while (matcher.find()) {
                                                            matcher.appendReplacement(buffer, replacingtext);
                                                    int IndexOf = itemName.indexOf(".");
                                                    String domainName = itemName.substring(IndexOf);
                                                    System.out.println("domainName: "+domainName);
                                                    String finalimage = buffer.toString()+"_"+r+domainName;
                                                    System.out.println("Final Image==="+finalimage);
                                                    File savedFile = new File(getServletContext().getRealPath("assets/images/")+"/LowesFloorPlan.png");
                                                    //File savedFile = new File("D:/apache-tomcat-6.0.35/webapps/ROOT/example/"+"\\test.jpeg");
                                                    item.write(savedFile);
                                                    out.println("<html>");
                                                    out.println("<body>");
                                                    out.println("<table><tr><td>");
                                                    out.println("");
                                                    out.println("</td></tr></table>");
                                                    try {
                                                            out.println("image inserted successfully");
                                                            out.println("</body>");
                                                            out.println("</html>");  
                                                    } catch (Exception e) {
                                                            System.out.println(e.getMessage());
                                                    } finally {
                                            } catch (Exception e) {
                                                    e.printStackTrace();

    It is only coming in Windows 7 systems and the root of this problem is SSL certificate.
    Workaround for this:
    Open application in IE and click on certificate error link at address bar . Click install certificate and you are done..
    happy programming.
    Thanks
    DevSachin

  • Flex upload problem - Help!

    Hi. I've got a JSP page that works fine when I upload a file
    to it from another JSP page, using simple Browse and Submit
    buttons. I've deployed the Flex 3 SWF to the same folder as the JSP
    page and am trying to upload a file from the Flex app and keep
    getting this error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File
    I/O Error.
    at
    TV_Schedule()[C:\flexTest\_workspace\TV_Schedule\src\TV_Schedule.mxml:9]
    at _TV_Schedule_mx_managers_SystemManager/create()
    at
    mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:2438]
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\3.0.x\frameworks\proj ects\framework\src\mx\managers\SystemManager.as:2330
    On the Tomcat server's error log, it has the following,
    [Fri Aug 22 12:16:19 2008] [error] [client xxx.xxx.xx.xxx]
    mod_security: Access denied with code 403.
    Error processing request body: Multipart: final boundary
    missing [hostname "myhost.mydomain.org"] [uri
    "/myfolder/upload.jsp"]
    I've read that if we put the following in an .htaccess file
    in the root, it will get rid of the problem,
    SecFilterEngine Off
    SecFilterScanPOST Off
    However, this opens us up to all kinds of attacks. I've read
    that the "Multipart: final boundary missing" is a known issue. Is
    this true? Are there documents on this? Will the next version of
    Flex fix this?

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    All Classes (Flex 3):
    mx.automation, The Flex automation framework uses the
    AutomationID class to ..... The FileReference class provides a
    means to upload and download files
    Link:
    http://livedocs.adobe.com/flex/3/langref/class-summary.html
    Flex cookbook beta - Uploading files from Flex using PHP:
    Flex cookbook beta - Code a control so that end users can
    upload a file ... text=Error #2038: File I/O Error. And the
    permissions for the folder are 777 so
    Link:
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=5241&produ ctId=2
    F (Flex 3):
    The FileReference class provides a means to upload and
    download files ...... handle error messages, and bind your form
    data to the Flex data model to
    Link:
    http://livedocs.adobe.com/flex/3/langref/all-index-F.html
    Flex Solutions:
    MORE FLEX FRAMEWORK LIBRARIES AND UTILITIES. 709. 12.
    Excerpted from Flex Solutions, .... invoked if an error occurs in
    the upload phase of the file:
    Link:
    http://www.adobe.com/devnet/flex/articles/upload_files/uploading_files_to_the_server.pdf
    [#FP-292] uploading of files: io error 2038 on Apache - app
    ok on:
    Actual Results: Expected Results: Upload file Workaround (if
    any): ... This error is also seen when using Flex 3 and has been
    pending for a really long time
    Link:
    http://bugs.adobe.com/jira/browse/FP-292
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • Multiple cffile upload issues

    Hello all. I'm having a little issue with a multiple upload I
    am trying to achieve. I've been searching and searching but could
    not find an answer, and maybe you guys could help me. Well I'm
    doing multiple uploads on a form i created and it's uploading the
    file and file name correctly, but it's inserting 6 records
    everytime I'm hitting the submit button. Also, I've notice in my
    database is when you click the submit button, it's inserting the
    same file in one record 6 times, then it creates a new record and
    inserts the second file 6 times. I'm going to post the code here,
    maybe it's something I'm missing, not sure. Thanks for the help.

    dame.cranon wrote:
    > Hello all. I'm having a little issue with a multiple
    upload I am trying to
    > achieve. I've been searching and searching but could not
    find an answer, and
    > maybe you guys could help me. Well I'm doing multiple
    uploads on a form i
    > created and it's uploading the file and file name
    correctly, but it's inserting
    > 6 records everytime I'm hitting the submit button. Also,
    I've notice in my
    > database is when you click the submit button, it's
    inserting the same file in
    > one record 6 times, then it creates a new record and
    inserts the second file 6
    > times. I'm going to post the code here, maybe it's
    something I'm missing, not
    > sure. Thanks for the help.
    >
    >
    >
    > <cfloop index="i" from="1" to="6">
    >
    > <cfif isDefined("form.upload")>
    >
    > <cffile action="upload"
    > destination="D:\Hosting\streetzmag\dev\crush_images\"
    > filefield="pic#i#"
    > nameconflict="makeunique"
    > result="cffile.pic#i#"
    > accept="image/jpeg, image/pjpeg, image/gif" >
    >
    > <!--- Code for insert of information --->
    > <cfquery datasource="mysqlcf_streetzmag"
    name="uploaded">
    > INSERT INTO Information(firstname,
    > lastname,
    > email,
    > contact_info,
    > nickname,
    > recent_work,
    > hair_color,
    > eye_color,
    > ethnicity,
    > age,
    > height,
    > measurements,
    > pic_1,
    > pic_2,
    > pic_3,
    > pic_4,
    > pic_5,
    > pic_6
    >
    >
    > )
    > VALUES('#FORM.firstname#',
    > '#FORM.lastname#',
    > '#FORM.email#',
    > '#FORM.contact#',
    > '#FORM.nickname#',
    > '#FORM.work#',
    > '#FORM.hair#',
    > '#FORM.eye#',
    > '#FORM.ethnic#',
    > #FORM.age#,
    > '#FORM.height#',
    > '#FORM.measurements#',
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>
    >
    > )
    > </cfquery>
    > </cfif>
    > </cfloop>
    >
    of course it will do everything 6 times since you have your
    whole code
    wrapped with cfloop from 1 to 6... so the code execution will
    happen 6
    times... plus your synatx for inserting filenames inside your
    query
    makes it insert same file 6 times (since the code is inside
    one same
    cfloop)...
    you should separate your code and wrap only the cffile part
    in a cfloop:
    <cfif isDefined("form.upload")>
    <cfloop index="i" from="1" to="6">
    <cfif len(trim(form.pic#i#)) gt 0>
    <cffile action="upload"
    destination="D:\Hosting\streetzmag\dev\crush_images\"
    filefield="pic#i#"
    nameconflict="makeunique"
    result="uploadedpic_#i#"
    accept="image/jpeg, image/pjpeg, image/gif" >
    </cfif>
    </cfloop>
    <!--- Code for insert of information --->
    <cfquery datasource="mysqlcf_streetzmag"
    name="uploaded">
    INSERT INTO Information
    (firstname,
    lastname,
    email,
    contact_info,
    nickname,
    recent_work,
    hair_color,
    eye_color,
    ethnicity,
    age,
    height,
    measurements,
    pic_1,
    pic_2,
    pic_3,
    pic_4,
    pic_5,
    pic_6)
    VALUES('#FORM.firstname#',
    '#FORM.lastname#',
    '#FORM.email#',
    '#FORM.contact#',
    '#FORM.nickname#',
    '#FORM.work#',
    '#FORM.hair#',
    '#FORM.eye#',
    '#FORM.ethnic#',
    #FORM.age#,
    '#FORM.height#',
    '#FORM.measurements#',
    <cfloop from="1" to="6" index="x">
    <cfif isdefined("uploadedpic_#x#")>
    <cfqueryparam value="#evaluate('uploadedpic_' & x)#"
    cfsqltype="cf_sql_varchar"/>
    <cfelse>
    NULL
    </cfif>
    <cfif x lt 6>,</cfif>
    </cfloop>)
    </cfquery>
    </cfif>
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • APEX 3.1.2 Static File Upload Issues

    We are still running on APEX 3.1.2 though we hope to go to 4 very soon.
    We had a production problem this past week that is perplexing. I have seen other posts referencing similar issues but no solutions.
    We have an application that has several Static File Javascripts (.js). We already ran into the IE Upload bug so we only upload in Mozilla now.
    We had changes to one of the .js files (identity.js). I deleted the old file using the Shared Components screen and uploaded the new one. The action was "Successful" but the file was still the old version. We deleted a file of 73 lines of code and uploaded a new version of 28 lines. After successful upload, we still would get the 73 line version . The app was still getting that version too.
    I deleted it many times and tried again. I ran scripts to do both the delete and upload. I even deleted the file manually from the FLOWS_FILES table that held it. Still got the old version.
    We bounced the server (thinking it was cached somewhere) - still got the old version. Finally, in desperation, I started cloning the app to another app number in another Workspace. Since we use aliases, I thought I could use a clean Workspace and uplad the new file there. This worked but - suddenly the old Workspace started using the correct file.
    Is ther some secret cache somewhere that needs to be cleared out? I did not want to start randomly clearing out caches and there is no documentation on this issue.
    Is it something about our config - we have Oracle HTTP Server, OC4J, and modplsql for this environment with a 10g database.
    Any insight would be appreciated - my manager does not like "it fixed itself magically".

    We ruled out the browser caching by trying the app on several other people's PCs.
    I am thinking it is being cached somewhere in the APEX server environment but cannot find any documentation on where or what that might be.
    I think I might have triggered a refresh when I was trying to implement a cloned version (in a different Workspace). It seems that the scope of a JS file is within its Workspace so we figured that a new Workspace would treat the changed file as a new file - and it did. During this process, we had duplicate ALIAS for a minute and I think that confused the APEX App Engine and triggered the refresh.
    But that is a SWAG opinion.
    I also thought of "versioning" the JS files but our developers are not too keen. If we don't find another solution, that may be what we have to do.

  • File Upload issue in MVC

    Hi,
    For my MVC application, I have created a main controller.
    On the DO_REQUEST of the main controller, I am setting the sub controllers, and directly calling that controller using create_controller, controller_set_active, and call_controller.
    I included dispatch_input( ) in the Main controller's DO_REQUEST method.
    Inside the DO_REQUEST  of the sub controller, I am creating a view using create_view and call_view methods.
    In this view, I have a <htmlb:tableView /> and a <htmlb:fileUpload />, with a button. The issue is that, when the button is clicked, in the DO_HANDLE_EVENT method of the sub-controller, I am not getting the File Data, or the table data.
    For File upload, I use the following -
    data lv_fupld_data TYPE REF TO cl_htmlb_fileupload.
    lv_fupld_data ?= cl_htmlb_manager=>get_data(
                          request = runtime->server->request
                          name    = 'fileupload'
                          id      = 'fupld_1').
    I have the <htmlb:form method       = "post"
                      encodingType = "multipart/form-data" > etc in the view.
    When I call this sub-controller directly from the browser (after including the dispatch_input( ) part in DO_REQUEST), I do not get any issue. I am able to read the file data and upload the file.
    Any Idea why this is happening?

    Hi Rakesh,
    I think I got your problem:
    You only have the htmlb:form in your view of the subcontroller, and not in the main view.
    Therefore the subcontroller works by itself, but not within the main controller.
    If you are including subcontrollers, then make sure the form element is only present in the view of the main controller, wrapping around any subcontroller calls. And don't use the form tag anymore in the subcontrollers.
    Just as you put dispatch_input() just in your top controller, also place htmlb:form only in your top view.
    Regards,
    Max

  • Lock Box Uploading Issue

    Hi,
    When i upload BAI file into Lock Box...I am getting the below error in FBL2 transaction.
    Accounts receivable posting Error: (F5 102) Customer * is not defined in company code 1000
    After that when i see in to FBL1,I am getting the below error.
    Payment Advise item doesnot exist
    Payment advice 010000007500001 does not exist for account 9372 1000
    Message no. FA006
    Kindly help me what is the problem and why i am not able to upload it successfully?
    Thanks
    Kishore

    I am experiencing the same issue.
    I am wondering how you went about in correcting this issue
    Thanks

  • Metadata upload issue in PI 7.4 Java stack

    Hello All,
    I need your help.
    We are using PI 7.4 single stack and for one Idoc scenario, we wanted to upload idoc metadata from ECC system with Version 4.6.
    we are facing Error : IDOC_ERROR_METADATA_UNAVAILABLE. We have successfull connection in place because we can successfully upload other standard Idoc metadata from same ECC, but issue is only with custom Idoc
    Kindly suggest how to proceed further.
    Thanks,
    Shiv

    Hello All,
    Small update here, here now we have uploaded metadata successfully but when idocs are sent from ECC(its unicode system ), they are failing in tRFC queue of ECC system  with error " IDOC_ERROR_METADATA_UNAVAILABLE.". and i have implemented below notes as well but seem no luck .
    sap notes 1767710 ,1473183 ,1529038 & 1405466.
    I have gone through
    SAP ECC-SM58 Error-IDOC Metadata unavailable
    Thanks,
    Shiv

Maybe you are looking for

  • Exception on creation of service metadata for WSDL

    trying to access webservice (generated on Oracle applic. Server)  as Adaptive WebServiceModel i get the following error: Exception on creation of service metadata for WSDL Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceCli

  • What are the daily activities of a BW Consultant - In brief?

    What are the daily activities of a BW Consultant - In brief? What are the daily activities that an consultant has to perform when he is in Implementation and Support? E.g : <b>For Implementation</b> 1.Creating Business Requirement document 2.Creating

  • Replacing Oracle Toplink with TopLink Essentials

    Is it possible to force OC4J to use TopLink Essentials by default instead of Oracle TopLink?

  • Cache entry created a long time after the report runs

    We have a report that results in more than 300,000 records. We get the results for the report in quick time but the cache entry gets created only after sometime, say around 30 mins later or so. Any idea why this delay? Is it that the report caches 25

  • Cannot get past strtup wizard...

    I have ichat 3.0 and haven't been able to get past the startup yet.... I have tried a few of the common responses to this: 1. my address-book 'me' data is the same as the data entered into the fields of wizard. 2. no NAT/Firewall issues to speak of..