Laravel send file to scan at virustotal
Go to solution
Solved by Joveice,
On 8/18/2017 at 7:12 PM, leodaniel said:
On 8/17/2017 at 10:32 AM, leodaniel said:This is probably wrong. The Storage::url will return you an relative URL to your APP root... something like '/storage/programs/...', which represents an absolute path in UNIX
So your file will not exists for curl_file_create because this is read as an absolute path!
So probably no file is sent.
How to get around this?
<?php /* in your config/filesystems */ 'disks' => [ /* Set the root and URL to the same path! */ 'your_disk'=>[ 'root' => storage_path('YourPath'), 'url' => storage_path('YourPath'), ] ]
Thanks this works like a charm.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now