Skip to content

Commit

Permalink
Use upload service when uploading to the forge
Browse files Browse the repository at this point in the history
  • Loading branch information
kakaroto committed Jun 19, 2021
1 parent 36eade7 commit 2a208ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forgevtt-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ class ForgeVTT_FilePicker extends FilePicker {
const formData = new FormData();
formData.append('path', path);
formData.append('file', file);
const uploadResponse = await ForgeAPI.call('assets/upload', formData);
const uploadResponse = await ForgeAPI.call(`https://upload.${ForgeVTT.HOSTNAME}`, formData);
if (!uploadResponse || uploadResponse?.error) {
ui.notifications.error(uploadResponse ? uploadResponse.error : "An unknown error occured accessing The Forge API");
return false;
Expand Down

0 comments on commit 2a208ee

Please sign in to comment.