Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    Caricare file swf da sito esterno

    I miei clienti effettuano l'acquisto su un sito hostato su aruba poi effetuano l'upload tramite una pagina html nel mio server interno in cui è presente una maschera realizzata in swf che si interfaccia con uno script php.

    Da vari test che ho effettuato il caricamento del file swf impiega diversi secondi per essere caricato ed è per questo che vorrei farlo caricare dal server di aruba liberandomi un poco di banda.

    Lo script da cui sono partito è questo e non ho fatto molti cambiamanti:
    http://www.zehnet.de/2009/02/23/flex...oad-component/
    In fondo nella parte download potete scaricare tutti i file.



    codice HTML:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>FileUpload</title>
    
    <script type="text/javascript" src="./swfobject.js"></script>
    
    </head>
    
    <body>
    
    
    <div style="width:500px;margin:0px auto;text-align:center;padding-top:10px;"><p style="font-family:Lucida Grande, Tahoma, Arial, Verdana, sans-serif; font-size: 160%; font-weight: 400;"><strong>Carica i file per la stampa</strong></p>
    
    <div style="width:500px;margin: 35px auto;">
    <div id="uploader">
    <script type="text/javascript">
     /** CONFIG SETTINGS FOR THE FILE UPLOADER **/
      var flashvars = {
          /** 
         * the url of the upload target file which processes the file uploads
         */
        uploadUrl : './upload.php',
          /** 
         * the maximum file size that can be upload in Bytes
         */
        maxFileSize : (2000000 * 1024 * 1024), // 20mb
          /** 
         * the maximum size of a single post request in Bytes that can be uploaded
         * As the BigFileUpload transfers big files with several requests,
         * this setting specifies the maximum size of one of these requests.
         */
        maxPostSize : (2000000 * 1024 * 1024) // 2mb
          /** 
         * a comma seperated list of file endings that are allowed to be uploaded
         */
        //fileFilter : 'jpg,jpeg,png,gif'
          /** 
         * The maximum number of files that can be added to the upload list
         */
        //maxFiles : 20
      };
      swfobject.embedSWF("FileUploaderStandalone.swf", "uploader", "500", "350", "10.0.0", "", flashvars);
    </script>
    <noscript><div class="swfNoScript" style="width:400px;height:400px">Ricarica la pagina!</div></noscript>
    </div>
    </div>
    <div style="text-align:left; font-family:Lucida Grande, Tahoma, Arial, Verdana, sans-serif; font-size: 90%; font-weight: 400; margin-top:30px; margin-bottom:40px;">
    
    <p><strong>Aiuto</strong></p>
    
    <p>1. Clicca su <strong>ADD</strong> e seleziona i file che vuoi stampare</p>
    
    
    <p>2. Clicca su <strong>UPLOAD</strong> per iniziare il caricamento dei file selezionati</p>
    
    
    <p>3. Attendi che appaia <img style="margin-top: -40px; margin-left: 0px;" class="alignleft size-full wp-image-3405" title="caricato" src="http://manifestiindigitaleordini.it/upload/_img_legenda/caricato.jpg" alt="" height="19" width="26">a sinistra dei file in caricamento</p>
    
    
    <p>4. Clicca su <strong>ORDINE COMPLETATO</strong></p>
    
    <p>5. Conferma di voler uscire dalla pagina </p>
    
    
    
    
    
    
    
    </div>
    
    <div style="width:500px;margin:0px auto;text-align:center;">
    <button align=center onclick="window.location='/cazzeggio/mals/upload_file/file/zippafile.php'" style="font-size: larger;"
    >Ordine completato</button>
    </div>
    <div style="text-align:center; font-family:Lucida Grande, Tahoma, Arial, Verdana, sans-serif; font-size: 90%; font-weight: 400; margin-top:30px; margin-bottom:40px;">
    <p><strong>Se hai problemi con il caricamento dei file<br></strong> <a href="http://www.manifestiindigitale.it/page97/page3/index.html">Clicca qui!</a> </p>
    </div>
    </body>
    </html>

  2. #2
    Ho provato anche a caricare il file nella directory www.miosito.it/codice e sostituire questa riga

    'swfobject.embedSWF("FileUploaderStandalone.swf", "uploader", "500", "350", "10.0.0", "", flashvars);'

    con

    'swfobject.embedSWF("http://www.miosito.it/codice/FileUploaderStandalone.swf", "uploader", "500", "350", "10.0.0", "", flashvars);

    Solo che selezionando il file e facendo clic su upload non inizia il caricamento.

  3. #3
    Ho provato anche a mettere tutto lo script nel server di aruba e cambiare queste righe:

    /**
    * the url of the upload target file which processes the file uploads
    */
    uploadUrl : './upload.php',
    /**



    CON


    /**
    * the url of the upload target file which processes the file uploads
    */
    uploadUrl : 'http://www.serverinterno.it/etcc/upload.php',
    /**

    e non funziona!!!!!!!!!!

Tag per questa discussione

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.