mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
78 lines
2.3 KiB
Text
78 lines
2.3 KiB
Text
css:
|
|
.dz-default {
|
|
font-size: 30pt;
|
|
}
|
|
|
|
.dz-success-mark {
|
|
display: none;
|
|
}
|
|
.dz-error-mark {
|
|
display: none;
|
|
}
|
|
.dz-details img {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 0px;
|
|
}
|
|
script src="/js/dropzone.min.js"
|
|
javascript:
|
|
Dropzone.options.uploads = {
|
|
paramName: 'newfile',
|
|
maxFilesize: #{current_site.available_space_in_megabytes},
|
|
clickable: true,
|
|
init: function() {
|
|
this.on("success", function(file) {
|
|
$('#upload_status').html('File upload of '+file.name+' was successful!');
|
|
});
|
|
|
|
this.on("error", function(file) {
|
|
$('#upload_status').html('File upload of '+file.name+' failed. Ensure that it was a valid file type.');
|
|
});
|
|
|
|
this.on("uploadprogress", function(file, progress) {
|
|
$('#upload_progress_bar').css('width', progress+'%');
|
|
});
|
|
}
|
|
};
|
|
|
|
.row style="margin-top: 20px"
|
|
.span12.text-center
|
|
h1 Upload New Files
|
|
|
|
.row
|
|
.span5.text-center
|
|
h5 Neocities uses a "drag and drop" file upload. Simply take files and drop them from your computer on the white box (or click it) and they are uploaded.
|
|
div style="background-color: #FFFFFF;"
|
|
form action="/site_files/upload" class="dropzone" id="uploads"
|
|
input name="csrf_token" type="hidden" value="#{csrf_token}"
|
|
|
|
div id="upload_progress"
|
|
.progress.progress-info.progress-striped
|
|
.bar id="upload_progress_bar" style="width: 0%"
|
|
|
|
div id="upload_status" style="font-size: 16pt"
|
|
|
|
div style="margin-top: 20px"
|
|
a.btn-Action href="/dashboard" Finish
|
|
|
|
.span6.text-center
|
|
|
|
p Files has to be one of the following types:
|
|
ul id="file_criteria"
|
|
li HTML (.html, .htm, .mf)
|
|
li Image (.jpg, .png, .gif, .svg)
|
|
li Markdown (.md, .markdown)
|
|
li JavaScript (.js, .json, .geojson)
|
|
li CSS (.css)
|
|
li Text (.txt, .text, .csv, .tsv)
|
|
li Web Fonts (.eot, .ttf, .woff, .svg)
|
|
li XML (.xml)
|
|
li PGP Keys (.asc, .key)
|
|
|
|
p If the file already exists, <u><b>it will be overwritten without warning</b></u>.
|
|
p It has to be <u>legal to share this content in the United States</u>.
|
|
p It must fit into your home page space (#{current_site.available_space_in_megabytes}MB remaining).
|
|
p The file uploader will automatically scrub any characters not matching: a-z A-Z 0-9 _ - .
|
|
|