X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/6531dbde01e67ba7cb7afc14eeeaf2d15ac56d74..77fef5e4b082959ff9154a3622c1f5406dea6d3b:/templates/upload.htm?ds=sidebyside diff --git a/templates/upload.htm b/templates/upload.htm index 28ee92c..9e0abe3 100644 --- a/templates/upload.htm +++ b/templates/upload.htm @@ -12,7 +12,7 @@ <p>(equals <a href="{URL}" target="_blank">{URL}</a>)</p> -<p><a href="{SCRIPT}?command=show&file={DIR}">Back to {DIR}</a></p> +<p><a href="{SCRIPT}?command=show&file={DIR_URL}">Back to {DIR}</a></p> <p>Using this form, you can upload a file to the current directory ('{DIR}').</p> @@ -25,10 +25,15 @@ <p>File to upload:<br> <input type="file" name="uploaded_file" size="35"></p> +<p>Remote name of the file (optional):<br> +<input type="text" name="remote_file" size="35"></p> + <p>Transfer mode (see below):<br> -<input type="radio" name="ascii" value="1">ASCII <input type="radio" name="ascii" value="0" checked>Binary (default)</p> +<input type="radio" name="ascii" id="ascii" value="1"><label for="ascii">ASCII</label> <input type="radio" name="ascii" id="binary" value="0" checked><label for="binary">Binary (default)</label></p> + +<p><input type="checkbox" name="overwrite" id="overwrite"><label for="overwrite">Overwrite existing file</label></p>{IF PERL_ARCHIVE_EXTRACT} -<p><input type="checkbox" name="overwrite">Overwrite file if it already exists</p> +<p><input type="checkbox" name="unpack" id="unpack"><label for="unpack">Unpack file after upload to the current directory</label></p>{ENDIF} <p><input type="submit" value="Upload file!"></p> </form> @@ -42,6 +47,13 @@ <li><b>Binary:</b> The file will be uploaded as it is. Use this transfer mode for images, executable files and archives, for example. This is the default transfer mode.</li> </ul> +<p><b>Note:</b></p> + +<ul> +<li>If you specify an other remote name for the uploaded file, all slashes and backslashes will be removed from the entered value.</li> +<li>If unpacking of a file fails after uploading the file is still there.</li> +</ul> + <hr> <p align="right"><a href="{SCRIPT}?command=about" target="_blank"><i>About Dev-Editor</i></a></p>