Warning: Undefined variable $argv in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 11

Warning: Trying to access array offset on value of type null in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 11

Warning: Undefined variable $argv in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 12

Warning: Trying to access array offset on value of type null in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 12

Warning: Undefined variable $argv in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 13

Warning: Trying to access array offset on value of type null in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 13

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 15

Warning: Trying to access array offset on value of type null in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 15

Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php on line 47

Fatal error: Uncaught InvalidArgumentException: Found 2 errors while validating the input provided for the PutObject operation: [Bucket] is missing and is a required parameter [Key] expected string length to be >= 1, but found string length of 0 in /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/Api/Validator.php:65 Stack trace: #0 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/Middleware.php(88): Aws\Api\Validator->validate('PutObject', Object(Aws\Api\StructureShape), Array) #1 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/S3/S3Client.php(639): Aws\Middleware::Aws\{closure}(Object(Aws\Command), NULL) #2 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/S3/S3Client.php(662): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL) #3 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/S3/S3Client.php(596): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL) #4 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/S3/S3Client.php(615): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL) #5 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/Middleware.php(58): Aws\S3\S3Client::Aws\S3\{closure}(Object(Aws\Command), NULL) #6 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/S3/SSECMiddleware.php(59): Aws\Middleware::Aws\{closure}(Object(Aws\Command), NULL) #7 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/IdempotencyTokenMiddleware.php(77): Aws\S3\SSECMiddleware->__invoke(Object(Aws\Command), NULL) #8 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(64): Aws\IdempotencyTokenMiddleware->__invoke(Object(Aws\Command)) #9 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(58): Aws\AwsClient->executeAsync(Object(Aws\Command)) #10 /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/AwsClientTrait.php(86): Aws\AwsClient->execute(Object(Aws\Command)) #11 /home/eshancollegemgmt/public_html/s3_scripts/upload_file_to_s3.php(55): Aws\AwsClient->__call('putObject', Array) #12 {main} thrown in /home/eshancollegemgmt/vendor/aws/aws-sdk-php/src/Api/Validator.php on line 65