Help with Upload file to Server Examples

I have been working with the examples for how to upload a file to the server. Though i got the example to work. there is one more thing i need to do. i need to allow the user to be able to select multiple files.  In the example when you click on Upload, it opens a MS window to allow you to select a file. This example does not allow you to select more then one file though. I found another example for selecting multiple files but this one differs very much in that the person who make it "Ryan Favro" created a whole new GUI window to select multiple files. those his example works great, i dont want a special window to select files, i want the MS window to do it.
Is there a way to make the original example that uses the MS window to allow the user to select multiple files ?
I have attached the example that uses the MS window.

Hi,
Use this code. May be it helps u.
fileuploadapp.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="test.*" layout="absolute"
    creationComplete="initApp()" viewSourceURL="srcview/index.html">
    <mx:Script>
        <![CDATA[
            import mx.controls.Alert;
            private const _strDomain:String = new String("http://localhost:8400/");
            private const _strUploadScript:String = new String(_strDomain + "ProcessFileUp/UploadFile");
            // Initalize
            private function initApp():void {
                Security.allowDomain(_strDomain);
        ]]>
    </mx:Script>
    <mx:Canvas width="400" height="300" horizontalCenter="0" verticalCenter="0">
        <com:FileUpload
            width="100%" height="100%"
            uploadUrl="{_strUploadScript}"
            uploadComplete="Alert.show('File(s) have been uploaded.', 'Upload successful')"
            uploadIOError="Alert.show('IO Error in uploading file.', 'Error')"
            uploadSecurityError="Alert.show('Security Error in uploading file.', 'Error')"/>
    </mx:Canvas>
</mx:Application>
fileuoload.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="*"
    layout="vertical" width="100%" minWidth="400" height="100%" minHeight="200"
    title="Upload Files" creationComplete="initCom()">
    <mx:Metadata>
        [Event(name="uploadComplete", type="flash.events.Event")]
        [Event(name="uploadProgress", type="flash.events.ProgressEvent")]
        [Event(name="uploadCancel", type="flash.events.Event")]
        [Event(name="uploadIOError", type="flash.events.IOErrorEvent")]
        [Event(name="uploadSecurityError", type="flash.events.SecurityErrorEvent")]
    </mx:Metadata>
    <mx:Script>
        <![CDATA[
            import mx.controls.*;
            import mx.managers.*;
            import mx.events.*;
            import flash.events.*;
            import flash.net.*;
            private var _strUploadUrl:String;
            private var _refAddFiles:FileReferenceList;   
            private var _refUploadFile:FileReference;
            private var _arrUploadFiles:Array;
            private var _numCurrentUpload:Number = 0;           
            // Set uploadUrl
            public function set uploadUrl(strUploadUrl:String):void {
                _strUploadUrl = strUploadUrl;
            // Initalize
            private function initCom():void {
                _arrUploadFiles = new Array();               
                enableUI();
                uploadCheck();
            // Called to add file(s) for upload
            private function addFiles():void {
                _refAddFiles = new FileReferenceList();
                _refAddFiles.addEventListener(Event.SELECT, onSelectFile);
                _refAddFiles.browse();
            // Called when a file is selected
            private function onSelectFile(event:Event):void {
                var arrFoundList:Array = new Array();
                // Get list of files from fileList, make list of files already on upload list
                for (var i:Number = 0; i < _arrUploadFiles.length; i++) {
                    for (var j:Number = 0; j < _refAddFiles.fileList.length; j++) {
                        if (_arrUploadFiles[i].name == _refAddFiles.fileList[j].name) {
                            arrFoundList.push(_refAddFiles.fileList[j].name);
                            _refAddFiles.fileList.splice(j, 1);
                            j--;
                if (_refAddFiles.fileList.length >= 1) {               
                    for (var k:Number = 0; k < _refAddFiles.fileList.length; k++) {
                        _arrUploadFiles.push({
                            name:_refAddFiles.fileList[k].name,
                            size:formatFileSize(_refAddFiles.fileList[k].size),
                            file:_refAddFiles.fileList[k]});
                    listFiles.dataProvider = _arrUploadFiles;
                    listFiles.selectedIndex = _arrUploadFiles.length - 1;
                if (arrFoundList.length >= 1) {
                    Alert.show("The file(s): \n\n• " + arrFoundList.join("\n• ") + "\n\n...are already on the upload list. Please change the filename(s) or pick a different file.", "File(s) already on list");
                updateProgBar();
                scrollFiles();
                uploadCheck();
            // Called to format number to file size
            private function formatFileSize(numSize:Number):String {
                var strReturn:String;
                numSize = Number(numSize / 1000);
                strReturn = String(numSize.toFixed(1) + " KB");
                if (numSize > 1000) {
                    numSize = numSize / 1000;
                    strReturn = String(numSize.toFixed(1) + " MB");
                    if (numSize > 1000) {
                        numSize = numSize / 1000;
                        strReturn = String(numSize.toFixed(1) + " GB");
                return strReturn;
            // Called to remove selected file(s) for upload
            private function removeFiles():void {
                var arrSelected:Array = listFiles.selectedIndices;
                if (arrSelected.length >= 1) {
                    for (var i:Number = 0; i < arrSelected.length; i++) {
                        _arrUploadFiles[Number(arrSelected[i])] = null;
                    for (var j:Number = 0; j < _arrUploadFiles.length; j++) {
                        if (_arrUploadFiles[j] == null) {
                            _arrUploadFiles.splice(j, 1);
                            j--;
                    listFiles.dataProvider = _arrUploadFiles;
                    listFiles.selectedIndex = 0;                   
                updateProgBar();
                scrollFiles();
                uploadCheck();
            // Called to check if there is at least one file to upload
            private function uploadCheck():void {
                if (_arrUploadFiles.length == 0) {
                    btnUpload.enabled = false;
                    listFiles.verticalScrollPolicy = "off";
                } else {
                    btnUpload.enabled = true;
                    listFiles.verticalScrollPolicy = "on";
            // Disable UI control
            private function disableUI():void {
                btnAdd.enabled = false;
                btnRemove.enabled = false;
                btnUpload.enabled = false;
                btnCancel.enabled = true;
                listFiles.enabled = false;
                listFiles.verticalScrollPolicy = "off";
            // Enable UI control
            private function enableUI():void {
                btnAdd.enabled = true;
                btnRemove.enabled = true;
                btnUpload.enabled = true;
                btnCancel.enabled = false;
                listFiles.enabled = true;
                listFiles.verticalScrollPolicy = "on";
            // Scroll listFiles to selected row
            private function scrollFiles():void {
                listFiles.verticalScrollPosition = listFiles.selectedIndex;
                listFiles.validateNow();
            // Called to upload file based on current upload number
            private function startUpload():void {
                if (_arrUploadFiles.length > 0) {
                    disableUI();
                    listFiles.selectedIndex = _numCurrentUpload;
                    scrollFiles();
                    // Variables to send along with upload
                    var sendVars:URLVariables = new URLVariables();
                    sendVars.action = "upload";
                    var request:URLRequest = new URLRequest();
                    request.data = sendVars;
                    request.url = _strUploadUrl;
                    request.method = URLRequestMethod.POST;
                    _refUploadFile = new FileReference();
                    _refUploadFile = listFiles.selectedItem.file;
                    _refUploadFile.addEventListener(ProgressEvent.PROGRESS, onUploadProgress);
                       _refUploadFile.addEventListener(Event.COMPLETE, onUploadComplete);
                    _refUploadFile.addEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
                      _refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
                    _refUploadFile.upload(request, "file", false);
            // Cancel and clear eventlisteners on last upload
            private function clearUpload():void {
                _refUploadFile.removeEventListener(ProgressEvent.PROGRESS, onUploadProgress);
                _refUploadFile.removeEventListener(Event.COMPLETE, onUploadComplete);
                _refUploadFile.removeEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
                _refUploadFile.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
                _refUploadFile.cancel();
                _numCurrentUpload = 0;
                updateProgBar();
                enableUI();
            // Called on upload cancel
            private function onUploadCanceled():void {
                clearUpload();
                dispatchEvent(new Event("uploadCancel"));
            // Get upload progress
            private function onUploadProgress(event:ProgressEvent):void {
                var numPerc:Number = Math.round((event.bytesLoaded / event.bytesTotal) * 100);
                updateProgBar(numPerc);
                var evt:ProgressEvent = new ProgressEvent("uploadProgress", false, false, event.bytesLoaded, event.bytesTotal);
                dispatchEvent(evt);
            // Update progBar
            private function updateProgBar(numPerc:Number = 0):void {
                var strLabel:String = (_numCurrentUpload + 1) + "/" + _arrUploadFiles.length;
                strLabel = (_numCurrentUpload + 1 <= _arrUploadFiles.length && numPerc > 0 && numPerc < 100) ? numPerc + "% - " + strLabel : strLabel;
                strLabel = (_numCurrentUpload + 1 == _arrUploadFiles.length && numPerc == 100) ? "Upload Complete - " + strLabel : strLabel;
                strLabel = (_arrUploadFiles.length == 0) ? "" : strLabel;
                progBar.label = strLabel;
                progBar.setProgress(numPerc, 100);
                progBar.validateNow();
            // Called on upload complete
            private function onUploadComplete(event:Event):void {
                _numCurrentUpload++;               
                if (_numCurrentUpload < _arrUploadFiles.length) {
                    startUpload();
                } else {
                    enableUI();
                    clearUpload();
                    dispatchEvent(new Event("uploadComplete"));
            // Called on upload io error
            private function onUploadIoError(event:IOErrorEvent):void {
                clearUpload();
                var evt:IOErrorEvent = new IOErrorEvent("uploadIoError", false, false, event.text);
                dispatchEvent(evt);
            // Called on upload security error
            private function onUploadSecurityError(event:SecurityErrorEvent):void {
                clearUpload();
                var evt:SecurityErrorEvent = new SecurityErrorEvent("uploadSecurityError", false, false, event.text);
                dispatchEvent(evt);
            // Change view state
            private function changeView():void {
                currentState = (currentState == "mini") ? "" : "mini";
        ]]>
    </mx:Script>
    <mx:states>
        <mx:State name="mini">
            <mx:SetProperty name="height" value="60"/>
            <mx:SetProperty name="minHeight" value="60"/>
            <mx:SetStyle target="{btnView}" name="icon" value="@Embed('assets/application_put.png')"/>
        </mx:State>
    </mx:states>
    <mx:transitions>
        <mx:Transition fromState="*" toState="*">
            <mx:Resize target="{this}" duration="1000"/>
        </mx:Transition>
    </mx:transitions>
    <mx:Canvas width="100%" height="100%">
        <mx:DataGrid id="listFiles" left="0" top="0" bottom="0" right="0"
            allowMultipleSelection="true" verticalScrollPolicy="on"
            draggableColumns="false" resizableColumns="false" sortableColumns="false">
            <mx:columns>
                <mx:DataGridColumn headerText="File" dataField="name" wordWrap="true"/>
                <mx:DataGridColumn headerText="Size" dataField="size" width="75" textAlign="right"/>
            </mx:columns>
        </mx:DataGrid>
    </mx:Canvas>
    <mx:ControlBar horizontalAlign="center" verticalAlign="middle">
        <mx:Button id="btnAdd" toolTip="Add file(s)" click="addFiles()" icon="@Embed('assets/add.png')" width="26"/>
        <mx:Button id="btnRemove" toolTip="Remove file(s)" click="removeFiles()" icon="@Embed('assets/delete.png')" width="26"/>
        <mx:ProgressBar id="progBar" mode="manual" label="" labelPlacement="center" width="100%"/>
        <mx:Button id="btnCancel" toolTip="Cancel upload" icon="@Embed('assets/cancel2.png')" width="26" click="onUploadCanceled()"/>
        <mx:Button label="Upload" toolTip="Upload file(s)" id="btnUpload" click="startUpload()" icon="@Embed('assets/bullet_go.png')"/>
        <mx:Button id="btnView" toolTip="Show/Hide file(s)" icon="@Embed('assets/application_get.png')" width="26" click="changeView()"/>
    </mx:ControlBar>   
</mx:Panel>
Regards,
     Shivang

Similar Messages

  • DW CS5 -- Issues with uploading files to server

    Hi everyone -- I recently took over control of a website that hasn't been updated in years. I am in charge of redesigning the site, but need to keep what we have up-to-date until the new site is ready to roll out. I received the FTP info for the server and got site files into local folders so I can make changes. I've made changes to one file (index.html) and am trying to put that file back onto the server; but in the file transfer process, the dependent files do not get uploaded (I get a message saying "'fileName' - same - not transferred"). The one file that I have changed, and Dreamweaver says has been uploaded, is not updating on the web. I checked the file on both my local and remote view and both reflect the changes I have made -- just not the actual site on the web.
    I'm sure that's a little confusing, so I'll try to summarize (with bulletts!):
    I have correct FTP info to server
    I downloaded site files from server to local folders
    I edited index page, and put the file to the server
    Dreamweaver indicates that the file has been successfully uploaded
    Local view shows edits I have made
    Remote view shows edits I have made
    Other dependent files have not been uploaded ("'fileName' - same - not transferred" error message)
    Actual website does not reflect changes made to index page
    What am I doing wrong????
    Thanks in advance for any help you can provide!

    Filezilla is a free, open source FTP client. It's a standard desktop application. An FTP client connects to a server using the File Transfer Protocol and allows you to transfer files up to the server (upload) or download files from the server (download).
    Why use a separate FTP client rather then the FTP functionality built-in to Dreamweaver? Because, in my experience, it works better the Dreamweaver's sometimes flakey FTP functionality and it's easier to troubleshoot FTP issues.
    In Firefox, to clear the cache, go to Tools -> Advanced -> Click Network Tab -> Click "Clear Now" button. Hit F5 to refresh the page and see what changes (if caching was the issue). If nothing changes then for some reason your files are not being uploaded properly to the server. In that case I'd check to make sure you're loading your files to the correct directory on the server (usually a folder called "httdocs" or "www" - check with your hosting company to amke sure).
    Hope this helps.

  • Help with uploading files to remote site

    I am trying to upload files onto a remote site, but it keeps
    timing out. Also, on my new website that i'm making for a client,
    when i Put the files onto the remote site it says Started:
    5/30/06 7:57 PM
    index.html - error occurred - An FTP error occurred - cannot
    put index.html. Access Denied. The file may not exist, or there
    could be a permission problem.
    File activity incomplete. 1 file(s) or folder(s) were not
    completed.
    Files with errors: 1
    index.html
    Finished: 5/30/06 7:57 PM
    What does this mean? why are the file incomplete?
    Mike S

    Have you successfully uploaded to this site before?
    Is your site definition configured to upload to the proper
    remote folder?
    The error message is simply telling you the transfer did not
    succeed
    "mikesilverman22" <[email protected]> wrote
    in message
    news:e5im76$r17$[email protected]..
    >I am trying to upload files onto a remote site, but it
    keeps timing out.
    >Also,
    > on my new website that i'm making for a client, when i
    Put the files onto
    > the
    > remote site it says Started:
    >
    > 5/30/06 7:57 PM
    >
    > index.html - error occurred - An FTP error occurred -
    cannot put
    > index.html.
    > Access Denied. The file may not exist, or there could be
    a permission
    > problem.
    >
    > File activity incomplete. 1 file(s) or folder(s) were
    not completed.
    >
    > Files with errors: 1
    > index.html
    >
    > Finished: 5/30/06 7:57 PM
    >
    > What does this mean? why are the file incomplete?
    >
    > Mike S
    >

  • Help with uploading files through form

    Hey,
    I have a website for a sign business and I'm trying to make
    it so people can upload custom artwork. I am using an ASP Formmail
    script from I think it's www.brainjar.com. If I understood
    correctly from the directions, I can't upload files through that
    script and I tried it once and it did not work. If anyone has any
    ideas then please help. Thanks
    Jeremy

    For security reasons many shared hosts don't permit file
    uploads.
    Try this in the interim
    http://www.yousendit.com/
    --Nancy
    "dayencom" <[email protected]> wrote in
    message
    news:epo2ql$dsb$[email protected]..
    > I just tried contacting my hosting provider:
    www.ixwebhosting.com and the
    guy
    > was not helpful at all. He said that their hosting does
    not support
    uploading
    > files. So I am drawing a blank now. Is there any way to
    use maybe another
    site
    > to upload?
    >

  • Help! Upload file to server. How?

    Hello,
    How do I upload a file from my local harddrive to a remote server? Please give me a code example.

    Check out Apache HttpClient.
    http://jakarta.apache.org/commons/httpclient/
    It has an example program
    "MultipartFileUploadApp.java" which demonstrates how
    to use this API to do a file upload from pure Java.
    http://svn.apache.org/viewvc/jakarta/commons/proper/ht
    tpclient/trunk/src/examples/MultipartFileUploadApp.jav
    a?revision=480424&view=markup
    To use Apache HttpClient you also need to download
    "commons-codecs" and "commons-logging" and put the
    jars in your classpath.
    http://jakarta.apache.org/commons/codec/
    http://jakarta.apache.org/commons/logging/
    I put the jars into my project but still it cant find the following packages:
    import org.apache.commons.httpclient.HttpClient;
    import org.apache.commons.httpclient.HttpStatus;
    import org.apache.commons.httpclient.methods.PostMethod;
    import org.apache.commons.httpclient.methods.multipart.FilePart;
    import org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity;
    import org.apache.commons.httpclient.methods.multipart.Part;
    import org.apache.commons.httpclient.params.HttpMethodParams;

  • Can i development program with EDK for uploading file to server?

    Can I development program with EDK for uploading file to server?How to avoid same name of files?
    Thanks!

    Hi ,
    thanks for the quick response.
    but the problem is supppose i have a excel sheet with 16 rows and 13 columns(so data).
    i am placing this file contents to appserver USING ABOVE fm.
    after that i am reading the file from appserver to create SO(idoc),i need  1row-3column data and 2row-2c data.like that.
    in unix we will get row data(after uploading to app server) as #mprn#2345# like this so easy to separate when reading.but in  MS NT OS 1row data getting stored in different rows in Appserver.so difficult to read.
    so the above mentioned FM is OS dependent or is there any way (any other FM) to get same kind of data in different OS.
    PLEASE SUGGEST OTHER WISE I NEED TO CODE BASED ON OS.
    REGARDS
    SARATH

  • Trying to print a book with Aperture 2.1.4, everything went well until the final step "uploading files to server" -- it's been spinning for an hour, "status" still reads 0%, "pause task" and "cancel task" buttons are grayed out in Activity window.

    everything went well until the final step "uploading files to server" -- it's been spinning for an hour, "status" still reads 0%, "pause task" and "cancel task" buttons are grayed out in Activity window. Any ideas?

    everything went well until the final step "uploading files to server" -- it's been spinning for an hour, "status" still reads 0%, "pause task" and "cancel task" buttons are grayed out in Activity window. Any ideas?

  • Can some help with CR2 files ,Ican`t see CR2 files in adobe bridge

    can some help with CR2 files ,I can`t see CR2 files in adobe bridge when I open Adobe Photoshop cs5- help- about plugins- no camera raw plugins. When i go Edit- preference and click on camera raw  shows message that Adobe camera raw plugin cannot be found

    That's strage. Seems that the Camera Raw.8bi file has been moved to different location or has gone corrupt. By any chance did you try to move the camera raw plugin to a custom location?
    Go To "C:\Program Files (x86)\Common Files\Adobe\Plug-Ins\CS5\File Formats" and look for Camera Raw.8bi file.
    If you have that file there, try to download the updated camera raw plugin from the below location.
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5371&fileID=5001
    In case  you ae not able to locate the Camera Raw.8bi file on the above location, then i think you need to re-install PS CS5.
    [Moving the discussion to Photoshop General Discussions Forum]

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Can anyone help with uploading photos from iPad to Facebook.  Thanks

    Can anyone help with uploading photos fom iPad to Facebook?  Thanks

    What app are you to trying to use ? You can't upload photos to Facebook via Safari, but a number of the Facebook apps support it e.g. the 'official' app : http://itunes.apple.com/us/app/facebook/id284882215?mt=8 (thought it's optimised for the iPhone/iPod Touch it does support uploading photos), Friendly For Facebook (http://itunes.apple.com/us/app/friendly-for-facebook/id400169658?mt=8)

  • Adobe Send - Problem with uploading files. When is this going to get fixed?

    When is the Adobe Send problem with uploading files going to get fixed. Similar to others - I have tried and tried to make Adobe Send work and get an error. I have tried to upload the file and it looks like it uploads and then - it is nowhere to be found.
    I then go to Adobe Send Now and it works fine.

    The problem is the same as described in other similar threads.
    I have a 57 MB PowerPoint file I am trying to send using Adobe Send. I go through the normal steps to identify the file and select recipients and then send the file. After the file completes the upload - an error saying there was a problem comes up and the file is not uploaded.
    I have tried to upload the file to the site with similar results - error and the file doesn't go.
    I can go to the old SendNow site and it works flawlessly.
    If I need to get screenshots - let me know. There are several other threads describing this same problem. It isn't something new or not heard of before.
    Sent from my iPod

  • Can Somebody help with uploading.........

    Can Somebody help with uploading my iweb creation.
    i have made a iweb site and upload it to my .mac.
    later that day i deleted on my idisk the site manualy and i want to upload a news site but every time i tryed to upload the site iweb says that i need a .mac account. and that i have.
    i have tryed with a other account (from a friend) and that worked. Strange but now it works. I tryed again with my account but still he ask that i need a .mac account.
    Can anybody help me????

    i have solved it the solution was here
    http://discussions.apple.com/thread.jspa?threadID=334447&tstart=45
    many thanks

  • Help with uploading an excel file to a table using an application

    Hello,
    Can anyone please help me out with this issue. I have apex application where in the end users upload an excel file to a table. For this I have followed the solution provided in this link
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Using the above solution, I was able to upload the excel data to a table "sample_tbl1" successfully with fields Id,acct_no,owner_name,process_dt. But the thing is I want accomdate a particular condition while uploading the file data, to check see if the acct_no already exists in another table say "sample_tbl2" or not. If acct_nos already exists in sample_tbl2 then give out an error displaying the list of account numbers that already exists in the database. Below is the code which I am using to upload file data to a table.
    DECLARE
    v_blob_data       BLOB; 
    v_blob_len        NUMBER; 
    v_position        NUMBER; 
    v_raw_chunk       RAW(10000); 
    v_char            CHAR(1); 
    c_chunk_len       number       := 1; 
    v_line            VARCHAR2 (32767)        := NULL; 
    v_data_array      wwv_flow_global.vc_arr2; 
    v_rows            number; 
    v_sr_no           number         := 1; 
    l_cnt             BINARY_INTEGER := 0;
    l_stepid          NUMBER := 10;
    BEGIN
    --Read data from wwv_flow_files</span> 
    select blob_content into v_blob_data 
    from wwv_flow_files 
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER) 
    and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER); 
    v_blob_len := dbms_lob.getlength(v_blob_data); 
    v_position := 1; 
    /* Evaluate and skip first line of data
    WHILE (v_position <= v_blob_len ) LOOP
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char :=  chr(hex_to_decimal(rawtohex(v_raw_chunk)));
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    -- When a whole line is retrieved
    IF v_char = CHR(10) THEN
    -- Clear out 
    v_line := NULL;
    EXIT;
    END IF;
    END LOOP;
    -- Read and convert binary to char</span> 
    WHILE ( v_position <= v_blob_len ) LOOP 
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position); 
    v_char :=  chr(hex_to_decimal(rawtohex(v_raw_chunk))); 
    v_line := v_line || v_char; 
    v_position := v_position + c_chunk_len; 
    -- When a whole line is retrieved </span> 
    IF v_char = CHR(10) THEN
    -- Convert comma to : to use wwv_flow_utilities </span> 
    v_line := REPLACE (v_line, ',', ':'); 
    -- Convert each column separated by : into array of data </span> 
    v_data_array := wwv_flow_utilities.string_to_table (v_line); 
    -- Insert data into target table
    EXECUTE IMMEDIATE 'insert into sample_tbl1(ID,ACCT_NO,OWNER_NAME,PROCESS_DT) 
    values (:1,:2,:3,:4)'
    USING 
    v_sr_no, 
    v_data_array(1), 
    v_data_array(2),
    to_date(v_data_array(3),'MM/DD/YYYY');
    -- Clear out 
    v_line := NULL; 
    v_sr_no := v_sr_no + 1; 
    l_cnt := l_cnt + SQL%ROWCOUNT;
    END IF; 
    END LOOP;
    delete from wwv_flow_files
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER)
    and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
    l_stepid  := 20;
    IF l_cnt = 0 THEN
    apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold">Please select a file to upload.</span></p>' ;
    ELSE
    apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold;color:green">File uploaded and processed ' || l_cnt || ' record(s) successfully.</span></p>';
    END IF;
    l_stepid  := 30;
    EXCEPTION WHEN OTHERS THEN
    ROLLBACK;
    apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold;color:red">Failed to upload the file. '||REGEXP_REPLACE(SQLERRM,'[('')(<)(>)(,)(;)(:)(")('')]{1,}', '') ||'</span></p>';
    END;
    {code}
    Can anyone please help me, how do i accomdate the condition within my existing code.
    thanks,
    Orton                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Orton,
    From your code it appears that the account No comes in the second column of the file = > v_data_array(1)
    So You can put a conditional block around the execute immediate code that inserts the records
    For instance
      SELECT count(1) INTO ln_account_no_exists from <"sample_tbl2> where account_no = v_data_array(1);
      IF (  ln_account_no_exists > 0 ) THEN
         --Account No: already exists
        <Do what you want to do here >
      ELSE
        EXECUTE IMMEDIATE ...
      END IF:
    {code}
    Inorder to handle the account no records which exists you can
      <li>Raise an exception
      <li> Write record to table or insert into collection and then use a report region in the page based on this table/collection to show error records
      <li> Append errored account No:s to the Success Message Variable programmatically(this variable is used by PLSQL process success/error message )
       {code}
        IF ( record exists)
          apex_application.g_print_success_message := apex_application.g_print_success_message||','|| v_data_array(1) ; -- Comma separated list of errored account no:s
        ELSE ...
       {code}
    Hope it helps                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • File upload: problem with writing uploaded file to server-harddisk

    Hello,
    according to the example in the File upload tutorial, I tried to save an uploaded file to disk, but it didn't work (and also no messages / exceptions were thrown).
    The Javadoc for the function uploadedFile.write(filename) says that if the file should be written in an other directory than the servers' tmp-directory, the server.policy has to be adjusted.
    The following line is already included in my server.policy:
    permission java.io.FilePermission "<<ALL FILES>>", "read,write";
    So I have two questions:
    1) Where can I find the servers' tmp-directory?
    2) How should the sever.policy permission code look like?

    The File Upload tutorial at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/file_upload.html has you save the uploaded file to disk. It also gives this information:
    The server holds the uploaded file in memory unless it exceeds 4096 bytes, in which case the server holds the file contents in a temporary file. You can change this threshold by modifying the sizeThreshold parameter for the UploadFilter filter entry in the web application's web.xml file. For more information on modifying the web.xml file, see the last section in this tutorial, Doing More: Modifying the Maximum File Upload Size.
    In cases where you want to retain the uploaded file, you have three choices:
    * Write the file to a location of your choosing, as shown in this tutorial.
    * Create an UploadedFile property in a managed bean and set it to the component's value before you exit the page (as in the button's action method).
    * Save the file to a database.
    By default, the File Upload component can handle files up to one megabyte in size. You can change the maximum file size by modifying the maxSize parameter for the UploadFilter filter entry in the application's web.xml file, as described in the last section in this tutorial, Doing More: Modifying the Maximum File Upload Size.

  • Help with Dump files from other server.

    Hello!
    I'm having a problem with reading Dump files. The issue is this:
    I'm working with a great number of SQL Servers installed in a big number of virtual/physical servers. The problem is that I can't analyse (neither with WinDg or Visual Studio) the .mdmp files out of the server that is having the issue.
    Is there anyway that I could read the SQL Server dump files out of the server (It doesn't matter if it is in my Computer or another server)? Because it always shows an error of compatability with sqlservr.exe
    Also is there any other tool that could help me to read sql server dump files?
    Thank you very much :)

    Hello,
    I would suggest you raise a case with Microsoft for accurate analysis of the dump.I would strongly recommend it .If you still want to proceed use below link
    http://blogs.msdn.com/b/psssql/archive/2012/03/15/intro-to-debugging-a-memory-dump.aspx
    As a fact by applying latest service pack you have chance to subside these Dumps
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Maybe you are looking for

  • Highlighting in Adobe Reader 9? I've already enabled highlighting but it does not work!

    I've already followed the steps posted here: http://forums.adobe.com/thread/430906 and enabled highlighting under preferences but i'm still unable to highlight or comment. I am sure the document allows commenting as I was able to highlight and commen

  • Fonts in Reports 9i for RH Linux

    I deployed my forms/reports application on 9iAS for linux. I have generally used Ariel font in all of my reports. Those reports which have bold font of Ariel print the text a bit larger and therefore my text is not printed fully. Reports having Ariel

  • After turning off private browsing Safari crashes immediately upon launch.

    After turning off private browsing Safari crashes immediately upon launch. I tried soft-resetting, and clearing my cookies and cache. I basically launches in private browsing mode and then immediately tries to switch to regular browsing. When the scr

  • Install intel chip on older mac?

    I have an older imac, pre-Intel chip, and I want to know if I can install the Intel chip in it to make it capable of supporting Leopard operating system and the new Intel chip applications. Thanks for your help!

  • My volume keeps on changing without me touching it

    For some odd reason, my volume/sound will often get louder or softer without me manually attempting to change it. I find it quite annoying and rebooting it didn't help either. If someone could please help me with this problem, I would really apprecia