Hi,
is the following line configured correctly:
StorageHelper.MapStoragePath("~/Sitename/", mediaProvider);
As in is "sitename" actually the folder the media lib uses?
All you do here is basically instruct Kentico that there is an "alternative" way of storing files in folder 'x'... if your media lib is not storing in that exact folder it doesn't do anything.