upload file in cshtml

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 years ago
Hi All

I want to ask the user to upload a file. How can do that in cshtml?
What name of the component will help me?

I use nopcommerce 4.40
2 years ago
Dont know if you can use it in .cshtml
There is a File Upload Product Attribute you could look at that functionality
2 years ago
Yidna wrote:
Dont know if you can use it in .cshtml
There is a File Upload Product Attribute you could look at that functionality



I search about that but didn't find an answer. I want to ask the user to upload the Apple pay certificate. If can do that can ask him to copy the certificate content and paste it into text, Is That Possible to ask him to paste long text?


Thank you
2 years ago
Yidna wrote:
Dont know if you can use it in .cshtml
There is a File Upload Product Attribute you could look at that functionality


I do like that its work
<div class="form-group row">
                    <div class="col-md-3">
                        <nop-override-store-checkbox asp-for="certificate_OverrideForStore" asp-input="certificate" asp-store-scope="@Model.ActiveStoreScopeConfiguration" />
                        <nop-label asp-for="certificate" />
                    </div>
                    <div class="col-md-9">
                        <textarea asp-for="certificate" />
                        <span asp-validation-for="certificate"></span>
                    </div>
                </div>
but how I can change textarea size and remove default text inside it?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.