Repeated text in upload control
Hello,
I am using a File Upload controller inside edit template in grid. As you can see in the image the text "Or drop files here" is shown twice. Is this a bug or I am doing something wrong?
This is my code.
<GridColumn Field=@nameof(Nationalities.Flag) HeaderText="Bandera">
<Template>
@{
var nation = context as Nationalities;
string imgSrc = String.Format("data:image/png;base64,{0}", Convert.ToBase64String(nation.Flag, 0, nation.Flag.Length));
}
<div>
<img src="@imgSrc" class="rounded mx-auto img-fluid" alt="Flag" />
</div>
</Template>
<EditTemplate>
@{
<p>Bandera</p>
var nation = context as Nationalities;
string imgSrc = null;
if (nation.Flag != null)
{
imgSrc = String.Format("data:image/png;base64,{0}", Convert.ToBase64String(nation.Flag, 0, nation.Flag.Length));
<div>
<img src="@imgSrc" class="rounded mx-auto img-fluid" alt="Flag" />
</div>
}
<SfUploader AllowedExtensions=".jpg, .jpeg, .png" MaxFileSize=3000 Multiple="false">
<UploaderEvents ValueChange="OnChange"></UploaderEvents>
</SfUploader>
}
</EditTemplate>
</GridColumn>
Thanks,
Erick
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
BC
Berly Christopher
Syncfusion Team
June 23, 2020 06:04 AM UTC
Hi Erick,
Greetings from Syncfusion support.
We would like to inform you that this is an already known issue at our end and included the fix for this issue “The drops file text shown two times” in the 18.1.56 version. So, we suggest you upgrade our Syncfusion packages to our latest version to resolve this issue in your end.
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/280346/ze/Uploader_change_280346882140735
You can track the status of this issue from the below feedback.
Regards,
Berly B.C
Marked as answer
ER
Erick
June 23, 2020 04:41 PM UTC
Great. I have updated the version and it works ok.
Thanks,
Erick
BC
Berly Christopher
Syncfusion Team
June 24, 2020 04:40 AM UTC
Hi Erick,
We are glad to know that your issue is resolved. Please let us know if you need further assistance on this.
Regards,
Berly B.C
SIGN IN To post a reply.