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.

Help with the use of storage.set and storage.get
#3
(18.10.2023, 10:09)admin Wrote: Use FTP to upload .lp files. Storage is like a database, it does not store data in separate files in the filesystem.

Understood. How can I do it? I figure this, but I'm not sure It's ok

Write to FTP:
Code:
data_ftp = {8,7,6,5,4,3,2,1}
io.writefile('example.lp', data_ftp)

Read from FTP:
Code:
data_ftp, err = io.readfile('example.lp')
log(data_ftp, err)

Custom javaScript:
Code:
$(function(){
  console.log('Hello');
  $.get('example.lp', function(exampleData) {
           console.log(exampleData);
           });
});

And the same error code 404, not found. In Filezilla I don't find it. 

I tried to look for it in the forum using search, but I didn't find it.

Thank you.
Reply


Messages In This Thread
RE: Help with the use of storage.set and storage.get - by legolas2069 - 18.10.2023, 10:33

Forum Jump: