carnet panel contact
This commit is contained in:
parent
e095592e19
commit
3fcabdde25
@ -149,7 +149,9 @@ export async function PUT(request: Request) {
|
|||||||
const path = `/files/${username}/Private/${folder}/${title}`;
|
const path = `/files/${username}/Private/${folder}/${title}`;
|
||||||
console.log('Updating file at path:', path);
|
console.log('Updating file at path:', path);
|
||||||
|
|
||||||
await client.putFileContents(path, content);
|
// Set the correct content type based on file extension
|
||||||
|
const contentType = title.endsWith('.vcf') ? 'text/vcard' : 'text/markdown';
|
||||||
|
await client.putFileContents(path, content, { contentType });
|
||||||
|
|
||||||
// Get the updated file details
|
// Get the updated file details
|
||||||
const fileDetails = await client.stat(path);
|
const fileDetails = await client.stat(path);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user