Note that there are some explanatory texts on larger screens.

plurals
  1. POdeploying flex application on web server issue
    primarykey
    data
    text
    <p>I have a simple flex application that can upload local files. It is a simple button, and on click event a file dialog appear.</p> <p>The selected files are then processed by a PHP script and works great on my local machine. When i try to move my flex-debug, or flex-release project to a remote server the upload functionality doesn't work any more.</p> <p>If a inspect the network the POST is executed but for some reasons it has status of pending for 1 minute, but after success is doesn't run well, as expected, the files are not uploaded.</p> <pre><code>// file is a file:FileReference object var uploadURL:URLRequest = new URLRequest(); var params:URLVariables = new URLVariables(); file.addEventListener(Event.COMPLETE, uploadComplete); params.maxSize = maxSize; uploadURL.method = URLRequestMethod.POST; uploadURL.data = params; uploadURL.url = uploadScript; file.upload(uploadURL, IMAGE_FIELD); file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, uploadDataComplete); file.addEventListener(Event.COMPLETE, uploadComplete); </code></pre> <p>Edit: When i try to move my debug folder generated from Flash Builder 4.5 from C:\www to my second local host on D:\www the upload script doesn't work anymore. Maybe i miss some deployment options and only sees it on C:\www where my .mxml reside.</p> <p>Edit2: There was a problem on remote server i.e. move upload file function was not working properly. The problem was from upload.php script and not from Flex after all, thanks for help and sorry for disturbance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload