Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

link request #1402

Open
hellosct1 opened this issue Sep 24, 2019 · 2 comments
Open

link request #1402

hellosct1 opened this issue Sep 24, 2019 · 2 comments

Comments

@hellosct1
Copy link

Hi,

I'm looking for an idea or a track to find the right link (url) that I should use to send a file from an external JS link
Basically, I would like to go through a request to send a file to Firefox send

Whatever my calls, I have a mistake.
blocking a multi-origin request (Cross-origin Request)

Thank you in advance,

Christophe

@dannycoates
Copy link
Contributor

Hi @hellosct1, I don't really understand your question. Is there some code you can reference? (Be as specific as possible)

@hellosct1
Copy link
Author

hi @dannycoates

I just updated my depository.

https://github.com/hellosct1/firefox-send/blob/master/src-thunderbird/background/background.js

the line is number 160
and here is the function

   let transfer = await this._request("/share", {
      body: JSON.stringify({
        message: name,
        files: [{
          name,
          size: data.byteLength
        }],
      }),
      signal,
    });

my problem is the first argument because I have mi share, but I think it's not good

What I want to do is make an upoad to firefox send

source :
https://github.com/hellosct1/firefox-send/tree/master/src-thunderbird

the compiled extension
https://github.com/hellosct1/firefox-send/blob/master/src-thunderbird/send.xpi

hoping to have answered your request

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants