Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
1c7f68a0
Commit
1c7f68a0
authored
Jun 06, 2021
by
Rob Swindell
💬
Browse files
Set the file cost value to the file size.
parent
1e441eda
Pipeline
#2352
failed with stage
in 9 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
exec/postfile.js
exec/postfile.js
+1
-0
No files found.
exec/postfile.js
View file @
1c7f68a0
...
...
@@ -48,6 +48,7 @@ while(!file.from && !js.terminated) {
file
.
from
=
prompt
(
"
Uploader
"
);
}
file
.
cost
=
file_size
(
dir
.
path
+
file
.
name
);
print
(
"
Adding
"
+
file
.
name
+
"
to
"
+
filebase
.
file
);
if
(
filebase
.
add
(
file
))
print
(
format
(
"
File (%s) added successfully to:
"
,
file
.
name
)
+
code
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment