Tuesday, March 27, 2012

Re: Upload base64

SodaH8r,

Can you store this image as a clob or blob in your database? Depending on the size of your application, you'll see performance degradation once you get over 10-20K items in a single directory. Storing them in a database will also mean you are not tied to a single machine as your application grows.

Finally, uploading user files to a server directory is one of the most common attack vectors. If you do so, make sure they are not given executable permissions and validate that they are truly images before saving them to disk.

Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3padITOeoYcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment