You have to change the "var uploadURL = '/api/upload';" to "var uploadURL = 
'api/upload';" in  $:/plugins/sq/ImportToExternalFile/startup.js tiddler in 
the latest version of the plugin ( here: 
https://saqimtiaz.github.io/sq-tw/temp/import-to-external-file.html) 

You can  make the edit yourself. Otherwise, I have also made a pull request 
with this change - lets see.
On Saturday, April 24, 2021 at 1:34:36 PM UTC-6 [email protected] wrote:

> hello Adithya,
>
> May you please elaborate how to change uploadURL variable?  I need to do 
> the same, and couldn't find it.
>
> Best Regards,
> Pumin
>
> On Sunday, April 4, 2021 at 4:32:35 AM UTC+7 [email protected] wrote:
>
>> Hi Saq, 
>>
>> This plugin is very nice. Thanks for the contribution!
>>
>> It runs beautifully - I had to make a small change in the JS to make it 
>> work on my TiddlyServer installation though!
>>
>> I changed "var uploadURL = '/api/upload';" to "var uploadURL = 
>> 'api/upload';" Because the initial / was making it call the api on the home 
>> directory instead of the subdirectory. Once I did that it worked perfectly!
>>
>> Thanks again,
>> Adithya
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d1335181-2b57-4c36-b41b-97d5ac5fa38an%40googlegroups.com.

Reply via email to