pblogs / zebra

0 stars 0 forks source link

Add ability to upload scanned documents #18

Closed pblogs closed 9 years ago

pblogs commented 9 years ago

In the jobs on hand I would like to be able to Scan a drawing or document and save it to the JOB (I can make it so that you can upload, an already scanned document)

In the Equipment- I need to be able to Scan in documents of the truck and save them so I always have access.(I can make it so that you can upload an already scanned document for when you add new equitment)

rmagnum2002 commented 9 years ago

@vladimirlazu - structure should be like: Job and Equipment has many files all uploaded files should be stored in the same table file to upload - pdf/img[jpg, jpeg, png]

pblogs commented 9 years ago

S3 Bucket name: zebra-production

Access Key ID: AKIAJCBZYHRFMGS32KMA
Secret Access Key: 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
rmagnum2002 commented 9 years ago

@pblogs there should be 3 buckets therefore 3 sets of keys: zebra-dev zebra-staging zebra-production

if you have access to Dorian's amazon please add 2 more buckets. We will work with this for now, but when it comes to production the keys should be changed

pblogs commented 9 years ago

zebra-staging zebra-dev

buckets have been added.

rmagnum2002 commented 9 years ago

@pblogs please see what you can do about it:

http://stackoverflow.com/questions/28564653/exconerrorsforbidden-expected200-actual403-forbidden

pblogs commented 9 years ago

Ok, I've followed the instructions and attached a new policy user. Try now should work.

" 1 entity was attached to the AdministratorAccess policy. "

rmagnum2002 commented 9 years ago

@pblogs make sure you have the amazon s3 keys set for staging. We are using figaro gem.

pblogs commented 9 years ago

okay, we should be able to use the same pair of keys for each environment as seen here: http://stackoverflow.com/questions/29475144/do-you-need-a-seperate-pair-of-aws-keys-for-each-s3-bucket

rmagnum2002 commented 9 years ago

@pblogs we are waiting for feedback from Dorian, if he is ok with what we did we can close this issue.

rmagnum2002 commented 9 years ago

@vladimirlazu please add remove document feature so user can remove uploaded documents