diff --git a/Home.md b/Home.md index 9acae3d..cb93954 100644 --- a/Home.md +++ b/Home.md @@ -88,8 +88,8 @@ my $insert = $self->db->prepare("UPDATE accounts SET 'name' = ?, postcode = ?, a ``` # Receipt uploading -The most complex part of the app but also the most important is uploading the receipts themselves. The client app will send the image and a number of parameters with that image upon upload to the server in an HTTP post to "/upload" using the apps own image file upload code, which the app all receives in one go. -**The code for sending the key along with the data has yet to be added to the client side and thus is commented out in the current code.** The code at first checks to see if the key sent along with it matches that username as an extra measure. +The most complex part of the app but also the most important is uploading the receipts themselves. The client app will send the image and a number of parameters with that image upon upload to the server in an HTTP post to "/upload" using the apps own image file upload code, which the app all receives in one go. A key is added to the upload URL at the end of it, which is designated in config.js client-side. +The code at first checks to see if the key sent along with it matches that username as an extra measure. ```Perl # Fetch parameters to write to DB my $key = $self->param('key');