# Uppy integration with netcore application

**URL:** <https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217>\
**Category:** Uppy\
**Created:** [August 18, 2022, 4:43am UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217 "2022-08-18T04:43:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abhishek/32/627_2.png) [@abhishek](https://community.transloadit.com/u/abhishek)\
**Post date:** [August 18, 2022, 4:43am UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/1 "2022-08-18T04:43:55Z")

</div>

How can we integrate the uppy js with Google drive, onedrive, dropbox etc to dotnetcore platform?

Anyone have idea about it?

Thanks,  
Abhi

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [August 18, 2022, 8:53am UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/2 "2022-08-18T08:53:39Z")

</div>

I haven’t used .NET, but I suspect it shouldn’t be that hard, you have to make sure Uppy is rendered on the client instead of the server?

If you’re talking about Companion, you can’t run that directly inside the .NET ecosystem, it’s a Node.js server.

---

<div class="post-metadata">

**Author:** ![abhishek](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abhishek/32/627_2.png) [@abhishek](https://community.transloadit.com/u/abhishek)\
**Post date:** [August 18, 2022, 12:21pm UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/3 "2022-08-18T12:21:09Z")

</div>

Thank you @Merlijn for your response… 😀

OK, then only possible with express Node based application correct?

For that I may create stand alone node based application with express js?

May I get sample app with google drive provider?  
Do you have any demo that can I check and use.

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [August 18, 2022, 12:26pm UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/4 "2022-08-18T12:26:40Z")

</div>

If you’re not running an existing Express server, it’s best to instead run Companion standalone. Checkout the [docs](https://uppy.io/docs/companion/#Running-as-a-standalone-server) on how to do that.

All that is needed for Google Drive to work is `@uppy/google-drive` on the client with Uppy and the right environment variables for Companion, assuming you have created a Google Developer account with the API enabled.

Alternatively, you can get a [Transloadit plan](https://transloadit.com/pricing/) and you don’t have to worry about anything, it will be hosted for you, and the secrets will be provided by us (you can still provide your own secrets if needed).

---

<div class="post-metadata">

**Author:** ![abhishek](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abhishek/32/627_2.png) [@abhishek](https://community.transloadit.com/u/abhishek)\
**Post date:** [August 19, 2022, 4:22am UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/5 "2022-08-19T04:22:43Z")

</div>

We are not any existing express running server… have to create separate companion app with node?

> If you don’t have a Node.js project with a `package.json` you might want to install/run Companion globally like so: `npm install -g @uppy/companion`.

following it, checking out how to run Companion standalone.

---

<div class="post-metadata">

**Author:** ![abhishek](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abhishek/32/627_2.png) [@abhishek](https://community.transloadit.com/u/abhishek)\
**Post date:** [August 19, 2022, 6:34am UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/6 "2022-08-19T06:34:02Z")

</div>

Hi @Merlijn

Need your help.

as per your comment, I have install companion and able to run companion stand alone with version 3x… but found issue to download file from G drive.

> index.html that setting google drive provider.

```auto
  .use(Uppy.GoogleDrive, {
      target: Uppy.Dashboard, 
      companionUrl: 'http://localhost:3020/',
      companionHeaders: {
          "Acess-Control-Allow-Origin": "*",
          "Access-Control-Allow-Methods": "OPTIONS, GET, POST, PATCH, PUT",
          "Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization, Extra-Data"
      }
  })

```

While I authorized with google drive and choosing any file to upload it throwing error as below screenshot.

![image](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/7ca661fdc48d3b2e39ed98d29ff4381cce8d4b67.png)

 ![standalone-error_companion](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/0047c77062f8e72a18986cc17a7ef3cf5d437603.png)  
 ![image](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/b2d05d4ecba3b795bab2a5205604204bbb355bae.png)

> **Below is config json for stand alone server run.**

![image](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/6717ef8acec4cd2d47c81c37c5fd05b694741c92.png)

Is any configuration issue?

---

<div class="post-metadata">

**Author:** ![abhishek](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abhishek/32/627_2.png) [@abhishek](https://community.transloadit.com/u/abhishek)\
**Post date:** [August 19, 2022, 7:58am UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/7 "2022-08-19T07:58:15Z")

</div>

have resolved to given full absolute path on the File upload end point.

Now have one issue on file upload there is extension is missing on file complete event.  
how to get/know file extension on stream post?

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [August 19, 2022, 8:20am UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/8 "2022-08-19T08:20:42Z")

</div>

Good to hear Companion works. If you have a different issue, please create a new post with as much detail as possible.

---

<div class="post-metadata">

**Author:** ![abhishek](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abhishek/32/627_2.png) [@abhishek](https://community.transloadit.com/u/abhishek)\
**Post date:** [August 19, 2022, 9:02am UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/9 "2022-08-19T09:02:04Z")

</div>

OK right @Merlijn  
doing some research how to get meta data with file extension.

---

<div class="post-metadata">

**Author:** ![erabisheksharma](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/erabisheksharma/32/699_2.png) [@erabisheksharma](https://community.transloadit.com/u/erabisheksharma)\
**Post date:** [November 9, 2022, 12:17pm UTC](https://community.transloadit.com/t/uppy-integration-with-netcore-application/16217/10 "2022-11-09T12:17:45Z")

</div>

@abhishek - Did you get any resolution for this issue. We are also using net core and angular and integrating with uppy. We are unable to create companion in .net. could you please guide us if you have any lead on this.
