mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
- forgot to commit this file
This commit is contained in:
parent
1542ff98bc
commit
bec1388ba5
28
src/webui/uploadframe.html
Normal file
28
src/webui/uploadframe.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Upload local torrent file</title>
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/mocha.css" type="text/css" />
|
||||
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
||||
<!-- <script type="text/javascript" src="scripts/upload.js" charset="utf-8"></script> -->
|
||||
<script type="text/javascript">
|
||||
function submitForm(form) {
|
||||
if($('torrentfile').get('value').length == 0) {
|
||||
alert("Form cannot be left empty");
|
||||
return false;
|
||||
}
|
||||
document.uploadForm.submit();
|
||||
window.parent.showSuccess();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/command/upload" enctype="multipart/form-data" method="post" name="uploadForm">
|
||||
|
||||
<input type="file" name="torrentfile" id="torrentfile" size="40"/><p>Point to torrent file</p><!--<input type="submit" value="Download"/> -->
|
||||
<a id="upButton" onclick="javascript:submitForm();">Download</a>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user