summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authormarc <[email protected]>2015-07-03 16:44:45 +0200
committermarc <[email protected]>2015-07-03 16:44:45 +0200
commitc7c7937dcde9a94f2e5ee0549451b34e410803e0 (patch)
treed06ccd49055e1474891a6b3d3d190e457e7e2304 /examples
parent1bec39cebaef6a98481f52587ecc0483b4defc08 (diff)
downloadcaxlsx-c7c7937dcde9a94f2e5ee0549451b34e410803e0.tar.gz
caxlsx-c7c7937dcde9a94f2e5ee0549451b34e410803e0.zip
Validates whether an image is acceptable through mime type
image/jpeg, image/png & image/gif are considered the allowed mime types for an image. mimemagic gem is added as dependency in order to do the checking. Added tests to check against three supported mime types. A fake jpg fixture (created with 'touch' command) has been added to test that extension is no longer used.
Diffstat (limited to 'examples')
-rw-r--r--examples/image1_fake.jpg0
1 files changed, 0 insertions, 0 deletions
diff --git a/examples/image1_fake.jpg b/examples/image1_fake.jpg
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/examples/image1_fake.jpg