从C#模拟JS站点上的拖放 [英] Simulate drag drop on a JS site from C#

查看:99
本文介绍了从C#模拟JS站点上的拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用C#模拟文件的拖放到使用FileReader接口(filereader.js)上传文件的网站?



我想以编程方式将文件从我的C#wpf应用程序上传到使用FileReader界面上传文件的网站。当您使用界面时,没有用于上传文件的链接,如果上传后面有链接,我可以轻松上传。



我是什么尝试过:



我在网上搜索了很多,并没有找到一种模拟拖放到不使用链接的网站的方法。

Is there a way to simulate drag-drop of a file to a website that uses FileReader interface(filereader.js) to upload file, using C#?

I want to programmatically upload file from my C# wpf app to a website that uses the FileReader interface to upload files. When you use the interface there isnt a link that you use to upload file, if there was a link behind upload i could easily upload there.

What I have tried:

I searched a lot online and havent found a way to simulate drag drop to a site that doesnt use a link.

推荐答案

你看起来像下面这样 -



jQuery拖放图像上传功能 - 堆栈溢出 [ ^ ]



c# - 使用ASP.net和jquery进行拖放 - Stack Overflow [ ^ ]
Are you looking something like below -

jQuery Drag-and-Drop Image Upload Functionality - Stack Overflow[^]

c# - Drag and Drop using ASP.net and jquery - Stack Overflow[^]


在你想要从用户系统上传文件的行之间读取干预,如果是这样,那是不可能的。
Reading between the lines you want to upload files from the user system without their intervention, and if so that's not possible.


这篇关于从C#模拟JS站点上的拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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