Code Monkey home page Code Monkey logo

photo-share's People

Contributors

kmeyerhofer avatar rkelley1 avatar

Watchers

 avatar

photo-share's Issues

ENV to set file save location

Set the location of where we are to store our files on the server with an environmental variable.

E.g. PHOTO_SHARE_DIR=/home/photo-share/files

Allows us to more easily controll where the files are to be saved on the server when deployed.

Add modal image viewing

When a user clicks on an image, go into a "modal" type mode with Left and Right arrows to scroll to the next images.

Client side file loading

Use information loaded from MongoDB to send files to the client. Utilize Meteor-Files package for downloading.

The files will then be decrypted in a future issue.

Blank Comment

A user can add a blank comment on a file.

Throw an error when both the author and comment are blank.

UI issues

  • Fix loading indicator on initial file loading.
  • Add download link styling.

File upload to saves files

The action of a user uploading one/many files needs to transfer the files to the photo-share/tmp folder (for now).

Sharing Link Buttons

Once the files are uploaded and displayed, the randomly generated page could have areas for sharing the link to others, such as email, and possible social media integration. We could have the application email entered addresses (separated by a comma) with the link to the URL.

Loading Indicators

Display to the user when the application is loading information. Essentially, keep the user in the loop of what's going on during the application.
Ideas for the things It could display:

  • A spinning icon, plus the follwing words
  • Encrypting files... / Decrypting files...
  • Uploading files... / Downloading files...

It could occur on these instances of the application:

  • Upload: Encrypting and processing each file client side
  • Download: Loading and decrypting each file client side

Max file size

Limit the filesize of each file uploaded to a max of 5MB? 10MB? Something reasonable for a larger picture/gif.

Wrong password error

If the password is incorrect for decryption, there is an error thrown in extractMIMEType complaining mime is null.

add comments

each image file can have multiple anonymous or named comments.

Utilize Meteor Method

In imports/components/upload.js, the method saveFileToDB should be called with a Meteor.call('function') instead of client-side database writing, to protect the database.

Error Handling

Standardize way to display or show error messages, mostly from Meteor Method callbacks.

File type components

  • If a file ends with .png, .jpg/.jpeg, .gif, etc... we'll render it as an <Image /> component
  • If a file ends with .mkv, .mov, .webm, .mp4, etc... we'll render it as a <Video /> component
  • If a file ends with .txt, .text, we'll render it as a <Text /> component

You get the idea. Video might be out of the question for now, due to storage limits...

Download buttons

A download button for each file AND for all files (which zips all files).

Wrong password input

Handle the case where a user enters the incorrect decryption phrase. There is an error displaying currently when this happens.

  • Error: InvalidCharacterError: String contains an invalid character from file.js:, base64StringToBlob()

Navigating to URL not in DB

If you try to access /testingurl or any other URl not in the database, the password decryption form shows up but nothing displays if you enter a password.

We need some sort of error handling & re-routing back to the root path.

Client side encryption

  • Before file upload, client encrypts seleted photo
  • Encrypted file is then stored on server

Testing

Write tests to ensure proper code functionality.
Test:

  • file uploading
  • Database entries
  • encryption abilities
  • decryption abiliites
  • displays on the page
  • routing

Dynamic route lookup

We need a dynamic URL router which can check the database for the url key then loading up any files to the client.

If no string is found, return a 404 response code.

Decrypting step shows all comments

All comments are loaded and displayed to the user while the decryption process runs, even if the password is incorrect. We need a way to render the comments only after the files have been decrypted.

File Limitation Text

The styling for the file limitation text (* Images only) displays funny on small screens. Make so it doesn't overflow the parent flexbox.

Client side decryption

When a valid URL with files is accessed, decryption needs to take place on the client side to then view the files.

User can upload a file

  • Homepage with file upload button
  • Once uploaded random url is generated for that file
  • database stores file locatation and url generated as the key

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.