Skip to content

Commit 79f2c70

Browse files
CCM-8581: Test
1 parent 568a966 commit 79f2c70

File tree

1 file changed

+6
-1
lines changed
  • frontend/src/app/test-file-upload

1 file changed

+6
-1
lines changed

frontend/src/app/test-file-upload/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ async function uploadFile(formData: FormData) {
1111
const result = await uploadData({
1212
path: `incoming/${randomUUID()}`,
1313
data: file,
14+
options: {
15+
bucket: {
16+
region: 'eu-west-2',
17+
bucketName: 'pdf-upload-test-bucket-2',
18+
},
19+
},
1420
}).result;
1521
console.log('Succeeded:', result);
1622
} catch (error) {
@@ -22,7 +28,6 @@ const UploadFilePage = async () => {
2228
return (
2329
<form action={uploadFile}>
2430
<label>
25-
<span>Upload a file</span>
2631
<input type='file' name='file' />
2732
</label>
2833
<button type='submit'>Submit</button>

0 commit comments

Comments
 (0)