[PHP] Upload 1fichier.com

Dieses Thema im Forum "Webentwicklung" wurde erstellt von Tiffany Dicks, 21. Februar 2016 .

Schlagworte:
  1. 21. Februar 2016
    Hallo,

    hat jemand schon einen Upload mit PHP zu 1fichier.com hinbekommen?

    Rapidleech funktioniert bei meiner Version kommt immer "Paramètres Incorrects"


    PHP:
    $data [ 'domain' ] =  '0' ;
            
    $data [ 'did' ] =  $folder ;
            
    $data [ 'submit' ] =  'Send' ;
            
    $data [ 'dpass' ] =  '' ;
            
    $data [ 'mail' ] =  '' ;
            
    $data [ 'mails' ] =  '' ;
            
    $data [ 'message' ] =  '' ;
            
    $data [ 'send_ssl' ] =  'on' ;
            
            
    $files  = array(
                
    'file[]'  =>  realpath ( $path )
            );
    $contents  Request ( $up [ 1 ],  $data $this -> cookiefile $files );

    Das meine Request Funktion

    PHP:
    function  Request ( $url $data $cookiefile  '' $files  = array(),  $headers  = array()) {

       
       
    $ch  curl_init ();
       if(
    $files )
       {
        
            foreach(
    $files  as  $key  =>  $file )
            {
                
    $data [ $key ] = new  CurlFile ( $file mime_content_type ( $file ),  basename ( $file ));
            }
            
       }

       
    curl_setopt ( $ch CURLOPT_URL $url );
       
    curl_setopt ( $ch CURLOPT_POST count ( $data ));
       
    curl_setopt ( $ch CURLOPT_POSTFIELDS $data );
       
    curl_setopt ( $ch CURLOPT_RETURNTRANSFER 1 );
       
    curl_setopt ( $ch CURLOPT_HEADER 0 );
       
    curl_setopt ( $ch CURLOPT_FOLLOWLOCATION true  );
       
    curl_setopt ( $ch CURLOPT_SSL_VERIFYPEER false );
       if(
    count ( $headers ))
       {
        
    curl_setopt ( $ch CURLOPT_HTTPHEADER $headers ); 
       }

       if(
    $cookiefile )
       {
        
        
    curl_setopt ( $ch CURLOPT_COOKIEJAR $cookiefile );
        
    curl_setopt ( $ch CURLOPT_COOKIEFILE $cookiefile );
            
       }
       
       
       
    $result  curl_exec ( $ch );

       
    curl_close ( $ch );
       
       return 
    $result ;
    }
    Weiß jemand ob 1fichier.com ne API hat?
     
  2. 21. Februar 2016
    AW:
    PHP:
     Upload 1fichier . com [/ b ]

    [
    php ]         $files  = array( 
                
    'file[]'  =>  '@'  realpath ( $path
            ); 
     
  3. 21. Februar 2016
    AW:
    PHP:
     Upload 1fichier . com [/ b ]

    Ich nutze doch CurlFile also brauch das nicht ?

    $data [ $key ] = new  CurlFile ( $file mime_content_type ( $file ),  basename ( $file ));
     
  4. 21. Februar 2016
    AW:
    PHP:
     Upload 1fichier . com [/ b ]

    Sorry mein Fehler !

    Sende den Request erstmal an deinen eigenen Server und schau was dabei rüber kommt .
    Ich hatte es schon das dass setzen von curl - optionen in der falschen Reihenfolge ein Problem war
     
  5. 21. Februar 2016
    AW:
    PHP:
     Upload 1fichier . com [/ b ]

    Hm Der Joke ist halt das mit der Request Funktion der Upload auf zippy uploaded und shareonline funktioniert Rapidleech nutzt ne andere Methode Wenn ich  die  Rapidleech Funktion  ( upfile nutze erhalte ich von 1finchier ein Bad Request zurück .

    Ich hänge da echt jetzt schon 5 Stunden oder so dran  :(
     
  6. 21. Februar 2016
    AW:
    PHP:
     Upload 1fichier . com [/ b ]

    Das könnte an den fehlenden Header - Einträgen liegen  die  ein Browser normalerweise sendet .

    [
    php ] curl_setopt ( $ch CURLOPT_HTTPHEADER , array(
      
    'Accept'  =>  'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
      
    'Accept-Encoding'  =>  'gzip,deflate,sdch' ,
      
    'Accept-Language'  =>  'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4' ,
      
    'Cache-Control'  =>  'no-cache' ,
      
    'Connection'  =>  'keep-alive' ,
      
    'DNT'  =>  '1'  // hehe
    ));
     
  7. 21. Februar 2016
    AW:
    PHP:
     Upload 1fichier . com [/ b ]

    Änderung aber naja

    Requete incorrecte 
    ( 1507 )

    Geil Daran hat es gelegen Ich bin so ein Dödel !
     
  8. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.