PHP code example of eddturtle / direct-upload

1. Go to this page and download the library: Download eddturtle/direct-upload library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

eddturtle / direct-upload example snippets




use EddTurtle\DirectUpload\Signature;

// Require Composer's autoloader
_S3_BUCKET",
    "eu-west-1"
);



use EddTurtle\DirectUpload\SignatureAuto;

// Require Composer's autoloader

$uploader = new SignatureAuto("", "", [
    'acl' => 'public-read',
    'max_file_size' => 10,
    'encryption' => true,
    'additional_inputs' => [
        'Content-Disposition' => 'attachment'
    ]
]);
html
<form action=" echo $uploader->getFormUrl();