mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
move character limit api doc to var
This commit is contained in:
parent
cc7731fe9c
commit
96ffe92ce3
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ post '/api/upload' do
|
||||||
end
|
end
|
||||||
|
|
||||||
if SiteFile.name_too_long? file[:filename]
|
if SiteFile.name_too_long? file[:filename]
|
||||||
api_error 400, 'file_name_too_long', "#{file[:filename]} filename is too long (exceeds 255 characters)"
|
api_error 400, 'file_name_too_long', "#{file[:filename]} filename is too long (exceeds #{SiteFile::FILE_NAME_CHARACTER_LIMIT} characters)"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue