Hi i\'m a beginner in JavaScript i would like to ask if its possible to session the data i\'m getting from a server. The data i want to session is the \'data.xhr.response\' i se
Try reading this article about session storage on mozilla.org, it shows how straightforward it is. In your case it should be as simple as:
$('#file-upload').dropzone({
maxFiles: 1,
acceptedFiles: ".pdf,.doc,.docx,.html",
dataType: "json",
success : function(data) {
sessionStorage.setItem('xhr', data.xhr.response);
}
});