从C#模拟JS站点上的拖放 [英] Simulate drag drop on a JS site from C#
问题描述
有没有办法使用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屋!