一直将其他Fine Uploader参数传递到uploadSuccess端点吗? [英] Pass additional Fine Uploader params all the way to the uploadSuccess endpoint?

查看:80
本文介绍了一直将其他Fine Uploader参数传递到uploadSuccess端点吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过

  .on('upload', function(event, id, name) {
    var artistId = $('#PhotoArtists').val();
    $(this).fineUploader('setParams', {artist: artistId}, id);
  })

旨在将文件名,艺术家等保存到指定的uploadSuccess端点中的数据库.但我认为我的参数没有以任何形式传递. (我假设它们在我为signature.endpoint指定的文件中可用.)

with the intention of saving the filename, artist, etc to database in the specified uploadSuccess endpoint. But I don't think my params are being passed that far in any shape or form. (I assume they're available in the file I've specified for signature.endpoint.)

是否存在一种记录下来的方法,可以将这些参数一直保存到保存过程的最后?还是有一个更好的行动计划,可以将所有相关详细信息保存到不同的位置?

Is there a documented way of persisting these params all the way to the end of the process for saving? Or is there a better plan of action for saving all relevant details to the database at a different point?

推荐答案

如果要将参数传递到上传成功端点,则需要设置

If you want to pass parameters to your upload success endpoint, you'll need to either set the uploadSuccess.params option and/or use the setUploadSuccessParams API method.

这篇关于一直将其他Fine Uploader参数传递到uploadSuccess端点吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆