added reading to the file, msi works on windows only. exe works if there is exiftool
This commit is contained in:
@@ -2,13 +2,46 @@
|
||||
|
||||
<div class="container">
|
||||
<h1>Upload a File</h1>
|
||||
<form action="/upload" method="post" enctype="multipart/form-data">
|
||||
<form action="/upload" method="post" enctype="multipart/form-data" target="noframe">
|
||||
<div class="upload-btn-wrapper">
|
||||
<button class="btn">Upload a file</button>
|
||||
<input type="file" name="myFile" />
|
||||
<input type="file" name="myFile" accept=".zip, .exe, .msi" />
|
||||
</div>
|
||||
<input type="submit" value="Upload" />
|
||||
</form>
|
||||
<button type="button" onclick="showContainer('form-container')" >fubarus</button>
|
||||
</div>
|
||||
|
||||
<div class="form-container" oncontextmenu="showContainer('form-container')">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="PackageIdentifier">PackageIdentifier</label>
|
||||
<input type="text" id="PackageIdentifier" name="PackageIdentifier">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="PackageVersion">PackageVersion</label>
|
||||
<input type="text" id="PackageVersion" name="PackageVersion">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="InstallerType">InstallerType</label>
|
||||
<input type="text" id="InstallerType" name="InstallerType">
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend>Installers</legend>
|
||||
<div class="form-group">
|
||||
<label for="InstallerUrl">InstallerUrl</label>
|
||||
<input type="url" id="InstallerUrl" name="InstallerUrl">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="InstallerSha256">InstallerSha256</label>
|
||||
<input type="text" id="InstallerSha256" name="InstallerSha256">
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="form-group">
|
||||
<label for="Dependencies">Dependencies</label>
|
||||
<input type="text" id="Dependencies" name="Dependencies">
|
||||
</div>
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
<iframe name="noframe" style="display: none;"></iframe>
|
||||
{{end}}
|
Reference in New Issue
Block a user