javascript - How can I serve static images with spaces in the filename using Meteor? -


i have image in subdirectories in public folder , ones without spaces in name served fine, ones spaces redirect main page (which seems sorta dumb [it should 404 if isn't going work right]).

an example of working image: localhost:3003/magicimgs/m14/blessing.jpg

an example of non working image: localhost:3003/magicimgs/m14/academy%20raider.jpg

they both exist , work in exact same app in same folder structure, using backbone , angular.

even troubleshooting steps great... i'm having difficult time navigating around meteor. when things work, it's great, when don't have no way troubleshoot it. thanks.

folder structure:

|-client |---hb_helpers |---views |-partials |-private |---magicsets |-public |---css |---magicimgs |-----m14 |-----m14 copy |-server 

i think have found bug, , solution until bug fixed rename files , remove spaces.

there 2 issues here:

  • the behavior of meteor on missing pages -- taking home page instead of 404 page. design decision, not bug, 1 not agrees with. there's discussion on handling missing pages meteor-router here, though doesn't solve problem.

  • meteor handling of files without spaces. tried myself , same thing happens me -- meteor of version 0.6.5 doesn't seem handle spaces in file names correctly, @ least when serving files /public.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -