# Can file picker component be used to upload selected file to Cloudinary?

**URL:** <https://community.thunkable.com/t/can-file-picker-component-be-used-to-upload-selected-file-to-cloudinary/2319990>\
**Category:** Questions about Thunkable X\
**Created:** [March 12, 2023, 10:08am UTC](https://community.thunkable.com/t/can-file-picker-component-be-used-to-upload-selected-file-to-cloudinary/2319990 "2023-03-12T10:08:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 12, 2023, 10:08am UTC](https://community.thunkable.com/t/can-file-picker-component-be-used-to-upload-selected-file-to-cloudinary/2319990/1 "2023-03-12T10:08:39Z")

</div>

Hi, I’m trying to use this code (pic below) to upload user’s selected file from File Picker component to my Cloudinary database (Media DB) -

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/4/240a933212bcaf46f7d32c3ba2ac58048daee649.png)

When I select a .pdf file for example, I get an error from the MediaDB component saying “You need to select a valid media path”. The `regn id` text-input, which has the value of the `file` parameter says `content://com.android.providers.media.documents/document/document%3A28789` as the address of the .pdf file I selected to test.

I’ve so far tested only in Thunkable Live Android, latest version. Am I doing something wrong here or the file picker component can’t be used with MediaDB? If latter, is there any better way other than custom-HTML web viewer approach? Please advice. Thanks!

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [March 12, 2023, 1:44pm UTC](https://community.thunkable.com/t/can-file-picker-component-be-used-to-upload-selected-file-to-cloudinary/2319990/2 "2023-03-12T13:44:58Z")

</div>

You can use Cloudinary’s “Upload Widget” source to allow users to upload specific files to Cloudinary. Any type of file you can upload… Also, you have the option to limit the user to upload files ONLY from device or you can allow them to use External sources also

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [March 12, 2023, 2:48pm UTC](https://community.thunkable.com/t/can-file-picker-component-be-used-to-upload-selected-file-to-cloudinary/2319990/3 "2023-03-12T14:48:44Z")

</div>

Hi, thanks for replying! I too had found this method, in my original post at the end I mis-worded it to “custom HTML Webviewer approach”; I was trying to not do via upload widget, but that seems my only way now.

So ultimately I guess at the moment there’s no way to directly do this, hence I’ve started working on a custom upload widget as per my requirements 👍

Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [March 13, 2023, 4:27pm UTC](https://community.thunkable.com/t/can-file-picker-component-be-used-to-upload-selected-file-to-cloudinary/2319990/4 "2023-03-13T16:27:47Z")

</div>

Oh sorry, i didnt read the end of your post. I guess the HTML upload widget in the web viewer would be the only other alternative then 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [June 11, 2023, 4:28pm UTC](https://community.thunkable.com/t/can-file-picker-component-be-used-to-upload-selected-file-to-cloudinary/2319990/5 "2023-06-11T16:28:26Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
