This is a migrated thread and some comments may be shown as answers.

How to make the hyperlink when upload the file and put a placeholder in drag and drop box

2 Answers 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
xin
Top achievements
Rank 1
xin asked on 15 Mar 2019, 02:29 PM

Hi Stuff,

I have two questions, 1.Is there a way I can make the upload file to be a hyperlink? Now I set the autoUpload to be false. So once the file uploaded. The file name will be clickable.    2. Can I put a placeholder in the drag and drop box. such as the attachemnt picture.

<Upload
batch={false}
multiple={false}
onAdd={this.handleAddFile}
files={this.state.files}
autoUpload={false}
withCredentials={false}
onStatusChange={this.onStatusChange}
onRemove={this.onRemove}
restrictions={{
allowedExtensions: ['.pdf']
}}
saveUrl={'https://demos.telerik.com/kendo-ui/service-v4/upload/save'}
removeUrl={'https://demos.telerik.com/kendo-ui/service-v4/upload/remove'}
/>      

 

Thank you.

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
xin
Top achievements
Rank 1
answered on 15 Mar 2019, 08:36 PM

I fixed the hyperlink one. But every time when I try to upload multi files, the latest one replaces the first one

Here is the code demo: https://stackblitz.com/edit/react-r9wx2h

0
Vladimir Iliev
Telerik team
answered on 19 Mar 2019, 02:23 PM
Hi Xin,

Please check the answers of your questions below:

1) The provided demo is not loading on our side - could you please provide the source code of the demo for further investigation on our side?

2) Currently the drop area of the Upload component supports only message customization, however you can share your idea about making it more customizable in our Feedback portal:
Our dev team will evaluate the idea and include it in our next Kendo React versions.

Regards,
Vladimir Iliev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
xin
Top achievements
Rank 1
Answers by
xin
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or