Skip to content
Advertisement

Tag: response

Assign filename dynamically in a response

in my web application created with Laravel 8, I need to download an .xml file and the file name must be dynamically created, as per the title. this is because the file name is composed following a specific rule and having to include today’s date. $filename = ‘FirstPart_’.date(“Y-m-d”).’_000.xml’ so far to test the response and therefore the download I have

fetch formdata response from php server

I understand that fetch() response lets you receive formData from a server. I searched for an example that implements this functionality but I didn’t find a single one. All examples talk about uploading (posting) formData from a client to a server, but not vice versa. This doesn’t explain the .formData() method of the response. So, could you please direct me

Laravel download pdf returning random characters

Im trying to download my earlier saved pdf. Ive created this function. And it returns this: Var dumping my $filepath is resulting in this : C:laragonwwwYTBNstorage/pdf/billing/invoice/YTBN_Armando_3_2019-0305.pdf” Which is correct. Answer try to used like that or u can used directly in laravel 5.5 file path only no need to set header

Windows MAMP – PHP CURL Issue

I’m having issues with Windows MAMP Pro 3.3.1 getting PHP’s CURL to work. More specifically issue is that I can send requests to APIs using curl_exec, but it always returns false. When I tried to do the same thing with XAMPP it returns full response with no issues. I tried changing PHP version, I checked that php curl extensions is

Advertisement