本文介绍了如何向AjaxFileUpload控件添加文本字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力将mp3文件上传到网络服务器(最终到云端)。 AjaxFileUpload工作得很好,除了我需要它做更多的事情来收集有关我上传文件的一些元数据。示例:歌曲名称,歌曲类型,艺术家姓名,专辑的一部分(y / n)等。此数据将记录在SQL表格中。



使用在OnUploadStart事件中,我可以对我想要添加的任何字段进行任何验证。我遇到的问题是,当我一次添加多首歌曲时,如何生成额外的文本输入字段以对应每个文件?文件的元数据可能很广泛,所以我想向上传器添加按钮,这些按钮会触发模态弹出窗口或其他东西,我会在那里输入我的元数据。



这就是我现在所拥有的......

http://www.cooldrew.com/fileuploadsample/fileupload.jpg



这也是我想要的......

http://www.cooldrew.com/fileuploadsample/fileupload2.jpg





在正确的位置添加按钮是我的第一个挑战。假设我能做到这一点,第二个挑战是,在每行弹出每行输入数据后,如何将输入的数据绑定到每个文件?



感谢您的任何建议。

I am working on uploading mp3 files to the web server (eventually to the cloud). The AjaxFileUpload works great, except I need it to do a little more to collect some meta data about the files I am uploading. Example: song name, song genre, artist name, part of album(y/n), etc. This data will be recorded in a SQL table.

Using the OnUploadStart event, I can do any validation for any fields I want to add. The problem I have is, when I add multiple songs at once, how do I generate the extra text input fields to correspond to each file? Meta data for a file could be extensive, so I would like to add buttons to the uploader that will trigger a modal popup or something, and I'll input my meta data there.

This is what I currently have...
http://www.cooldrew.com/fileuploadsample/fileupload.jpg

And this is what I want to get too...
http://www.cooldrew.com/fileuploadsample/fileupload2.jpg


Adding the buttons in the right place is my first challenge. Assuming I can do this, the 2nd challenge is, after entering the data in each pop-up for each row, how do I tie the data I enter to each file?

Thanks for any advice.

推荐答案

这篇关于如何向AjaxFileUpload控件添加文本字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 06:52