You can POST the size as well as use GET. On the numbers, just validate the input - you should be doing this anyway for all inputted data, in all languages.
- MRdNk On 15 May 2012, at 15:21, Alan Hoffmeister <[email protected]> wrote: > Marc, that would work, but I'm concerned about security... What if > someone access the url /images/100000/100000/avatar.jpg ? > > -- > Att, > Alan Hoffmeister > > > 2012/5/15 Marc Deschamps <[email protected]>: >> I've done something like this using express: >> >> app.get('/images/:width/:height/:filename', routes.images.resize); >> >> Work great, in html i can do: >> >> <img src="/images/70/70/avatar.jpg"/> >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
