# RadzenUpload save to method

**URL:** <https://forum.radzen.com/t/radzenupload-save-to-method/3933>\
**Category:** Radzen.Blazor Components\
**Created:** [June 16, 2020, 9:42am UTC](https://forum.radzen.com/t/radzenupload-save-to-method/3933 "2020-06-16T09:42:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pasha\_goroshko](https://forum.radzen.com/user_avatar/forum.radzen.com/pasha_goroshko/32/1577_2.png) [@pasha\_goroshko](https://forum.radzen.com/u/pasha_goroshko)\
**Post date:** [June 16, 2020, 9:42am UTC](https://forum.radzen.com/t/radzenupload-save-to-method/3933/1 "2020-06-16T09:42:55Z")

</div>

Hi!  
I have three fields on the form, two of which need to select a file.  
After which I have to form the object:

```
public class MyData
{
   public string Name { get; set; }
   public byte[] File1 { get; set; }
   public byte[] File2 { get; set; }
}

```

The option with URL is not suitable for me, is there any other way?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [June 16, 2020, 9:47am UTC](https://forum.radzen.com/t/radzenupload-save-to-method/3933/2 "2020-06-16T09:47:51Z")

</div>

The only other way is to use the FileInput - you need to use strings for the file contents property.

---

<div class="post-metadata">

**Author:** ![pasha\_goroshko](https://forum.radzen.com/user_avatar/forum.radzen.com/pasha_goroshko/32/1577_2.png) [@pasha\_goroshko](https://forum.radzen.com/u/pasha_goroshko)\
**Post date:** [June 16, 2020, 10:07am UTC](https://forum.radzen.com/t/radzenupload-save-to-method/3933/3 "2020-06-16T10:07:10Z")

</div>

can an example?, I do not quite understand how to do this
