observe-to-email

git clone git://git.codymlewis.com/observe-to-email.git
Log | Files | Refs | README

commit 73718e073e16e4ca90167ba66b80bb76e600f7f4
parent f2c680010dbc82e3e03530920a4d7ce3b669185f
Author: Cody Lewis <luxdotsugi@gmail.com>
Date:   Sat,  8 Sep 2018 20:30:47 +1000

Removed photo uploads

Diffstat:
Aroutes/.#index.js | 2++
Mroutes/index.js | 7+------
Mviews/index.dust | 6------
3 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/routes/.#index.js b/routes/.#index.js @@ -0,0 +1 @@ +uxie@distortion-world.15281:1536322038+ \ No newline at end of file diff --git a/routes/index.js b/routes/index.js @@ -16,7 +16,6 @@ router.post('/observe', function(req, res, next) { form.parse(req, function (err, fields, files) { console.log("PArsing form"); var today = new Date(); - var photo = files.photo.path; msg = '\\subsubsection{Test from ' + today.toDateString() + '}\n' + '\\begin{center}\n\\begin{tabular}{| c | c |}\n\\hline\n' + '\ninterface type & ' + fields.interface + @@ -37,11 +36,7 @@ router.post('/observe', function(req, res, next) { from: 'seng2260efg@gmail.com', to: 'seng2260efg@gmail.com', subject: 'HLA9000 - Observations: ' + today.toDateString(), - text: msg, - attachments: [{ - path: photo, - contentType: "image/png" - }] + text: msg }; transporter.sendMail(mailOptions, function(error, info){ if (error) { diff --git a/views/index.dust b/views/index.dust @@ -63,12 +63,6 @@ <label for="other-comment">Other observations:</label> <textarea class="form-control" rows="5" id="other-comment" name="otherComment"></textarea> </div> - <p>Add a photo: </p> - <div class="form-group container"> - <div class="container"> - <input type="file" id="photo" name="photo"> - </div> - </div> <div class="form-group"> <button type="submit" class="btn btn-success">Submit</button> <button type="reset" class="btn btn-danger float-right">Reset</button>