Updated Home (markdown)
parent
990e85f4ad
commit
a11f614345
1 changed files with 2 additions and 2 deletions
4
Home.md
4
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');
|
||||
|
|
Reference in a new issue