This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Possibility to save image on LM
#5
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:

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'.
Reply


Messages In This Thread
RE: Possibility to save image on LM - by buuuudzik - 19.09.2017, 09:56

Forum Jump: