Skip to content

Commit

Permalink
fix: add ipfs:// scheme on file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
codynhat committed Apr 2, 2024
1 parent 11320d9 commit 0aa249f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cadastre/publisher/PublishingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default function PublishingForm(props: PublishingFormProps) {
const added = await w3Client.uploadFile(file);

setAugmentArgs((prev) => {
return { ...prev, contentURI: added.toString() };
return { ...prev, contentURI: `ipfs://${added.toString()}` };
});

setIsUploading(false);
Expand Down

0 comments on commit 0aa249f

Please sign in to comment.