Questions tagged [storage]

Explanation regarding the storage of data in memory and on disks, typically relevant to databases, media libraries, and backup and recovery systems.

Saving user information in PHP files

While delving into a PHP book, I came across a question about storing web form data in PHP pages. I understand the concept of creating a PHP file and receiving data using $_POST (or similar methods), but I'm concerned that this data would be overwritten ea ...

Tips for decoding and processing multiple JSON objects returned from an AJAX call within the initComponent method of a Sencha Touch panel

Looking for a more efficient way to read multiple JSON objects from an AJAX request. The current code provided below is taking too long, causing other codes to execute before this one. var allVisitStore = new Ext.data.Store({ model: 'allVisit', autoLoa ...

What is the best way to include a new user in the memory database when there is no database or storage back-end?

During an online test, I was given the task of adding a user to a database stored in memory. The request body required JSON formatting as shown below: { "id": "aabbbccddeeefff", "name": "User One", "hobbies": [ "swim", "sing", "workout" ] } (Users ...

Implementing multer diskStorage with Typescript

I'm currently in the process of converting a node.js server to TypeScript. Here is what my function looks like in Node: const storage = multer.diskStorage({ destination: function (req, file, cb) { const dir = './uploads/'; mkdirp(dir, ...

Saving data in a JSON format within the browser's localStorage, whether it be a nested object-tree or a collection

In a scenario with two JSON objects, Car and Wheel, where Car contains a collection of Wheel along with other primitive-type properties: Car: Name Speed Wheels Wheel: Thickness Friction When considering saving this car using localStorage, there are ...

Preventing data loss in an Ionic array - encountering issues with using this.array.push

When attempting to use the storage get method to fill the array storedArr = [], I encounter the error message .push is not a function: storedArr = this.storage.get('stored') ? this.storage.get('stored').then((e) => {e}) : []; The c ...

Lock Mechanism in Redis Store: Ensuring Data Security in NodeJS Applications

Currently, I am faced with the following challenge: I have integrated Redis with NodeJS using mranney's driver. The NodeJS webserver interacts with Redis by retrieving data, performing operations on it, and then saving it back to Redis. However, one s ...

Storing data locally using HTML5 and connecting to databases

As I work on designing a website using html5, css, and JavaScript primarily for client-side validation, I am also developing an app that will retrieve data entered on the website from a database. For example, if a user searches for a contact, the informa ...

Confirm the presence of Cookie and save the data

I'm a beginner in the world of Javascript and Ajax, attempting to save a user's name using cookies. I have created a form where users can input their first name (identified by id = firstName). My goal is to remember this information so that the n ...