Firstly, GREAT umbraco extension. I implement it as a way to import a huge amount of small files, not a small amount of huge ones - which is a bit contrary to it's intention, but it works well. Specifically, I've added it to a photography website where the owner uploads whole galleries via FTP, then imports the images to a new media folder all at once. Huge time saver!
Which leads me to the bug: All pictures are imported as media files, not images. I've found the problem in the source ("extension" contains a dot, "imageFileExtensions" doesn't), and recompiled it for my purposes. Hopefully you find it useful. I just changed line 158 of ImportMedia.aspx.cs from:
Hi Simon. Sorry for the slow reply. Yes, I'll submit the the patch, great idea.
I've since added auto thumbnail generation. Unfortunately the function umbraco uses to create thumbnails is private, so I had to copy and paste it from their upload control. I'll submit that too if I get the time.
Finally, I'm going to add an option to import folders rather than files. Will make this photography site much easier to manage when they upload 100+ image galleries.
Hi Ben did you get any luck importing the folder structure, I'm working on this right now. Since my customer is in panic import 14.6 GB of photo's Excellent Package Simon.
Short answer is yes. The basic bugs above have been submitted as a patch to Codeplex here, but I have a (pretty heavily) modified version of ImportMedia running at this end which has thumbnail generation and folder selection. It doesn't work recursively at this point though (that is, it wont add child folders or their contents).
If you'd like all the code, just contact me via Codeplex. My username is Qube.
I have contributions from both of you that I am going to be trying to look at this week and that will hopefully then(work permitting) allow a new release of the package. I will make sure I credit your contributions on the package details page.
What version of Umbraco are you looking to use it in? I will try and put aside some time tomorrow to get this outas there are also updates needed to other packages I have also developed.
I am now subscribed to this so hopefully I won't miss any further messages!
I have just uploaded a new package file for testing(v1.2), use on production sites at your own risk! Please feedback any problems through this forum. I will be trying to get thumbnails working properly tomorrow and get the package ready for release.
The package worked great thank you! Imported over 100 images and folder structure kept in place.
One small problem, though I don't know if it's an API problem or directly related to your package.
When you click on a folder with images in it we do not get the thumbnail previews as you do with locally uploaded media, do you know if this is an Umbraco issue?
It seems likes Import Media doesn't create the thumbnails (as discussed in this thread previously), was this planned to be part of this version or should I look at amending the source code?
As per my post on the previous page thumbnails are not working in that version. I've been tied up with client work which pays the bills so has to come first however I will try my best (work permitting) to get it sorted as soon as I can.
Yep, it's on Codeplex, there should be a link from the Project page although I am considering moving it out of its current project because it just doesn't seem to work for me having it part of the Umbraco extensions project, I think it should probably have its own repo. The thumbnail code is in the source just commented out as it didn't appear to be working when I tested it and as I was trying to rush it out I removed the feature temporarily. If you want to be a part of the project it is open for collaboration http://our.umbraco.org/member/send-collab-request?id=7464 :)
Bug - Images Imported as Files
Firstly, GREAT umbraco extension. I implement it as a way to import a huge amount of small files, not a small amount of huge ones - which is a bit contrary to it's intention, but it works well. Specifically, I've added it to a photography website where the owner uploads whole galleries via FTP, then imports the images to a new media folder all at once. Huge time saver!
Which leads me to the bug: All pictures are imported as media files, not images. I've found the problem in the source ("extension" contains a dot, "imageFileExtensions" doesn't), and recompiled it for my purposes. Hopefully you find it useful. I just changed line 158 of ImportMedia.aspx.cs from:
To:
Thanks Ben, Did you want to submit it as a patch to the repository?
Please vote for the project if you like it, it helps others to judge how useful it is.
Thanks, Simon
Hi Simon. Sorry for the slow reply. Yes, I'll submit the the patch, great idea.
I've since added auto thumbnail generation. Unfortunately the function umbraco uses to create thumbnails is private, so I had to copy and paste it from their upload control. I'll submit that too if I get the time.
Finally, I'm going to add an option to import folders rather than files. Will make this photography site much easier to manage when they upload 100+ image galleries.
Hi Ben did you get any luck importing the folder structure, I'm working on this right now. Since my customer is in panic import 14.6 GB of photo's Excellent Package Simon.
Cheers,
Richard
Slow reply, sorry Richard.
Short answer is yes. The basic bugs above have been submitted as a patch to Codeplex here, but I have a (pretty heavily) modified version of ImportMedia running at this end which has thumbnail generation and folder selection. It doesn't work recursively at this point though (that is, it wont add child folders or their contents).
If you'd like all the code, just contact me via Codeplex. My username is Qube.
Hi Guys,
I have contributions from both of you that I am going to be trying to look at this week and that will hopefully then(work permitting) allow a new release of the package. I will make sure I credit your contributions on the package details page.
Cheers, Simon
Hi Guys,
Firstly, thanks Simon for a great package.
Is there any progress on importing folders & files and keeping the Folders structure in place?
I'd be very happy to test a beta example.
Many thanks
Rich
Hi Rich,
What version of Umbraco are you looking to use it in? I will try and put aside some time tomorrow to get this outas there are also updates needed to other packages I have also developed.
I am now subscribed to this so hopefully I won't miss any further messages!
Simon
Looking good for a new release today if you don't need support for 4.5+.
That would be amazing Simon!
I have just uploaded a new package file for testing(v1.2), use on production sites at your own risk! Please feedback any problems through this forum. I will be trying to get thumbnails working properly tomorrow and get the package ready for release.
Glad to see this great project is still active!
Look forward to a 4.5 compatible version in the future * nudge nudge wink wink * :D
Hey Simon,
The package worked great thank you! Imported over 100 images and folder structure kept in place.
One small problem, though I don't know if it's an API problem or directly related to your package.
When you click on a folder with images in it we do not get the thumbnail previews as you do with locally uploaded media, do you know if this is an Umbraco issue?
Many thanks again for the great package.
Rich
Hi again,
It seems likes Import Media doesn't create the thumbnails (as discussed in this thread previously), was this planned to be part of this version or should I look at amending the source code?
Many thanks
Rich
Hi Rich,
As per my post on the previous page thumbnails are not working in that version. I've been tied up with client work which pays the bills so has to come first however I will try my best (work permitting) to get it sorted as soon as I can.
Sorry for the delay.
Simon
Hey Simon,
Many thanks, no need to apologise! It's a fantastic package and a life saver for my project.
Is the source available? Maybe I can have a look at helping out with the thumbnail code.
Cheers
Rich
Yep, it's on Codeplex, there should be a link from the Project page although I am considering moving it out of its current project because it just doesn't seem to work for me having it part of the Umbraco extensions project, I think it should probably have its own repo. The thumbnail code is in the source just commented out as it didn't appear to be working when I tested it and as I was trying to rush it out I removed the feature temporarily. If you want to be a part of the project it is open for collaboration http://our.umbraco.org/member/send-collab-request?id=7464 :)
is working on a reply...