v3.0.0-beta.6
Trying to upload assets to S3, but it only works when uploading into a folder (ie, not the root). When in the root, I'm getting the following error:
Found 1 error while validating the input provided for the PutObject operation: [Key] expected string length to be >= 1, but found string length of 0
Let me know if there's anything else I can provide that would be helpful. 馃憤
I spent some time debugging:
/ which obviously is not correct... to /Maybe something like
if(pathinfo($path)['dirname'] !== '.') {
$this->makeDirectory(pathinfo($path)['dirname']);
}
would prevent the creation of the directory. Then the file upload afterwards runs fine.
This is tested with and without subfolder - works so far.
@jasonvarga What do you think?
Nice sleuthing! 馃攳
Most helpful comment
Nice sleuthing! 馃攳