Export pdf file from Laravel Vapor through S3 bucket

This commit is contained in:
Dillon Ngo
2024-06-20 16:16:09 +08:00
parent fa8c9a481f
commit 478941c6fb
7 changed files with 14 additions and 9 deletions
@@ -131,7 +131,8 @@
return fetch(url, {
method: 'GET',
responseType: 'json',
}).then(response => {
}).then(response => response.json())
.then(response => {
if (response.src) {
window.location.href = response.src;
}
@@ -135,7 +135,8 @@
return fetch(url, {
method: 'GET',
responseType: 'json',
}).then(response => {
}).then(response => response.json())
.then(response => {
if (response.src) {
window.location.href = response.src;
}
@@ -277,7 +277,8 @@ export default {
return fetch(route, {
method: 'GET',
responseType: 'json',
}).then(response => {
}).then(response => response.json())
.then(response => {
if (response.src) {
window.location.href = response.src;
}
@@ -301,7 +302,8 @@ export default {
return fetch(route, {
method: 'GET',
responseType: 'json',
}).then(response => {
}).then(response => response.json())
.then(response => {
if (response.src) {
window.location.href = response.src;
}
@@ -126,7 +126,8 @@ export default {
return fetch(url, {
method: 'GET',
responseType: 'json',
}).then(response => {
}).then(response => response.json())
.then(response => {
if (response.src) {
window.location.href = response.src;
}
@@ -77,7 +77,8 @@
return fetch(route, {
method: 'GET',
responseType: 'json',
}).then(response => {
}).then(response => response.json())
.then(response => {
if (response.src) {
window.location.href = response.src;
}
@@ -157,8 +157,6 @@
responseType: 'json',
}).then(response => response.json())
.then(response => {
console.log('whiteForm.mockUp: ' + JSON.stringify(response));
console.log('whiteForm.mockUp: ' + JSON.stringify(response.src));
if (response.src) {
window.location.href = response.src;
}
@@ -35,7 +35,8 @@
return fetch(url, {
method: 'GET',
responseType: 'json',
}).then(response => {
}).then(response => response.json())
.then(response => {
if (response.src) {
window.location.href = response.src;
}