filename folder url required
Closed this issue · 1 comments
MaestroError commented
filename, folder, URL are required parameters via _construct function, but must not be, coz now the library has download option with .txt file and there is no need for filename and URL, only the folder is required
MaestroError commented
// Construct with parameteres array
$conf = [
"filename" => "NewFileName.mp4",
"folder" => "YOUR FOLDER",
"url" => "YOUR URL"
];
$file = new maestroerror\wgd($conf);
// Construct with URL only
$url = "YOUR URL";
$file = new maestroerror\wgd($url);
// Construct without parameters
$file = new maestroerror\wgd();
$file->folder("YOUR FOLDER")->name("/Home/Downloads/newFileName.mp4")->url("YOUR URL");