如何在查询字符串中添加fileupload [英] How to add fileupload in query string

查看:80
本文介绍了如何在查询字符串中添加fileupload的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在查询字符串中添加fileupload

解决方案

你的问题根本没有任何意义。 FileUpload添加在不在查询字符串中的页面中。



使用文件上载,您可以选择文件并上传到服务器。但是,你可以发送文件路径或名称,你可以从下一页的查询字符串中检索它并做你想做的任何事情。


我已经保存了..但是我需要哪个工具箱用于在查询字符串中显示图像


尝试下面的代码来解决您的问题。



  var  scripts = document.getElementsByTagName(' 脚本'); 
var index = scripts.length - 1 ;
var myScript = scripts [index];
// myScript现在包含我们的脚本对象
var queryString = myScript.src.replace(/ ^ [^ \?] + \ ?? /,' ');


How to add fileupload in query string

解决方案

Your question does not make any sense at all. FileUpload is added in a page not in query string.

With File Upload, you can select a file and upload to server. However, you can send the file path or name, which you can retrieve from query string in next page and do whatever you want to do.


i already saved.. but i need which toolbox is used to show the image in query string


Try below code to resolve your problem.

var scripts = document.getElementsByTagName('script');
var index = scripts.length - 1;
var myScript = scripts[index];
// myScript now contains our script object
var queryString = myScript.src.replace(/^[^\?]+\??/,'');


这篇关于如何在查询字符串中添加fileupload的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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