19.09.2017, 09:56
Perfect solution but I have a little problem because there is an error: "Server error".
I've saved this 2 .lp files inĀ '/www/user/' path and I've tried to upload some image and I have above error.
I've little changed upload.lp:
Maybe something I am doing bad. I understand that upload() is defined in some library like 'apps'.
I've saved this 2 .lp files inĀ '/www/user/' path and I've tried to upload some image and I have above error.
I've little changed upload.lp:
Code:
<?
upload()
filedata = getvar('file')
filename = getvar('file_filename')
if type(filedata) == 'string' and #filedata > 0 then
log(filename, #filedata)
end
?>
Maybe something I am doing bad. I understand that upload() is defined in some library like 'apps'.