Umbraco.SWFUpload Options
chrism
Posted: Saturday, May 17, 2008 5:14:54 PM
Rank: Devotee

Joined: 1/11/2007
Posts: 57
Hey,
I've made a new data type for Umbraco called Umbraco.SWFUpload. It is basically a fusion of the handy little SWFUpload utility and the Umbraco Upload datatype. It was something I felt was necessary for a project I'm working on, as I had quite big files to upload regularly.

I've tried on a few machines sucessfully, and am happy with the functionality on a basic level. It is not nearly as slick as it could be, but is a start. I did use the upload code in the existing Upload datatype as a starting point - I hope this is OK from a licensing perspective. If not, let me know, and I shall remove.

I've included a quick readme in the zip file - please refer to this first and foremost, and remember to update your web.config file.

Hopefully this will be useful for someone.

Cheers,
Chris

Umbraco.SWFUpload 1.0
bootnumlock
Posted: Saturday, May 17, 2008 5:41:05 PM

Rank: Fanatic

Joined: 10/9/2006
Posts: 439
@chrism --
i have been wanting someone to come up with this forever... man i wish i had time to learn .net...
i am installing this now and will test. if it works like i hope, i will be recommending this for the package repo team!

thanks for your hard work!

bootnumlock - aka bob baty-barr [http://www.baty-barr.com]
Level 1 Certified!
bootnumlock
Posted: Saturday, May 17, 2008 6:09:06 PM

Rank: Fanatic

Joined: 10/9/2006
Posts: 439
okay, this works AWESOME!!!!

couple things i noticed... the feature built into the upload that shows you the thumbnail of the image you uploaded is a bit missleading... you still have to remember to SAVE the node...

i will have to look to see if i actually uploaded 3 versions of the same file as this may be an issue.

Other than that... this works great!

Thanks again for your hard work!

bootnumlock - aka bob baty-barr [http://www.baty-barr.com]
Level 1 Certified!
tim
Posted: Saturday, May 17, 2008 6:11:45 PM

Rank: Addict

Joined: 2/19/2007
Posts: 766
Location: Belgium
Great work ! remember to submit it to the package repo !

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
chrism
Posted: Saturday, May 17, 2008 6:44:37 PM
Rank: Devotee

Joined: 1/11/2007
Posts: 57
yeah should have said - there are a couple of things that are funny about how it works -
it uploads immediately, but you have to save the page/media item to store the path.

there should only be one thumbnail generated - this is displayed below the image, and then at the top.

@tim - i don't think i can make a package because a web.config change is needed? if i'm wrong, let me know and i'll give it a whirl.

drobar
Posted: Saturday, May 17, 2008 7:42:40 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,758
Location: KY, USA
In order to change the web.config you'll need to write a custom install script that runs as the last step during the package installation. The package format can do most of the work, but anything special can be done with a short "installer" script.

These pages should give you some inspiration:
http://forum.umbraco.org/yaf_postst2580_How-do-i-progmatically-add-to-xsltExtensionsconfig.aspx
http://forum.umbraco.org/yaf_postsm11240_How-do-I-create-a-data-type-using-a-usercontrol-for-my-package.aspx


cheers,
doug.


MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
tim
Posted: Saturday, May 17, 2008 8:10:32 PM

Rank: Addict

Joined: 2/19/2007
Posts: 766
Location: Belgium
Sure, you could create a package of this, it is possible to edit the web.config if you have the rights. If not, you can just write the info in the documentation and the user will need to do this manually

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
neehouse
Posted: Sunday, May 18, 2008 10:40:16 AM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,075
Location: Charleston, West Virginia, United States
Awesome work..

Would you have the time to make a dashboard (user) control for the media section to allow for multiple uploads to a select media folder that would create the media node once uploaded? I know many would love you forever if you got that working with SWFUpload.

Again, Great job!

• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
chrism
Posted: Sunday, May 18, 2008 2:34:53 PM
Rank: Devotee

Joined: 1/11/2007
Posts: 57
@neehouse: that was my original aim, but it had initially proved more difficult than i had hoped... but i think that was more about the older version of swfupload that i was using... however, i don't think it should be too much more effort to get running. I had also considered integrating into the tony's multi-media-picker-upload thing...

sadly i've only weekends to spend on umbraco stuff at the moment... but i shall keep that in mind.

i also note that extjs have js based upload coming soon - this could be used to develop a nice image upload with thumbnailing and resizing too
dawoe
Posted: Monday, May 19, 2008 10:32:21 AM

Rank: Aficionado

Joined: 1/19/2008
Posts: 172
Location: Belgium
chrism wrote:
Hey,
I've made a new data type for Umbraco called Umbraco.SWFUpload. It is basically a fusion of the handy little SWFUpload utility and the Umbraco Upload datatype. It was something I felt was necessary for a project I'm working on, as I had quite big files to upload regularly.

I've tried on a few machines sucessfully, and am happy with the functionality on a basic level. It is not nearly as slick as it could be, but is a start. I did use the upload code in the existing Upload datatype as a starting point - I hope this is OK from a licensing perspective. If not, let me know, and I shall remove.

I've included a quick readme in the zip file - please refer to this first and foremost, and remember to update your web.config file.

Hopefully this will be useful for someone.

Cheers,
Chris

Umbraco.SWFUpload 1.0


Nice work,

I started out on this myself but never got to finish it because I had other priorities like :
- finishing first umbraco site (done, which reminds that i have to blog about it)
- deadline of big project at work
- currently preparing for mcp exam this friday

I tried using another aproach for using swf upload. I wanted to use it on a documenttype to upload images to child nodes e.g. on gallery folder upload multiple pictures as child nodes at once.

Didn't get that to work. Another approach would be to create a dashboard control that behaves as upload wizard.

Maybe we can share our sources sometime ?

Dave

Converting a DotNetNuke site to Umbraco : Follow it here
imayat12
Posted: Friday, May 23, 2008 10:24:33 AM

Rank: Addict

Joined: 7/19/2006
Posts: 659
Location: Preston, UK
Chris,

This is brilliant. Got it working nicely with my 305 site. One question will it work with 217 under net20.

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
chrism
Posted: Friday, May 23, 2008 7:41:54 PM
Rank: Devotee

Joined: 1/11/2007
Posts: 57
ismail,
I don't see any reason why not, although I can't say I've tested it, or that I've any sites to test on.

My only concern would be it the interfaces namespaces/references are different. I forgot to release source code, but will do that too - you should be able to tweak fairly quickly if needs be.

cheers,
chris
Niller2000
Posted: Tuesday, July 01, 2008 4:04:18 PM

Rank: Newbie

Joined: 2/26/2008
Posts: 2
Location: Allerød
Hi Chris,

I tried your SWF.Upload, but it gave me a problem/error with TinyMCE.

I'm using it in v.3.0.3, and it works perfect when you upload stuff into the media area. But when you use the Richtext editor (TinyMCE) and try to insert a media link, it fails and can't show the file, it only gives you a 404 error.

I went back to the old upload rendercontrol and then the link part in TinyMCE worked as it should again.

It would be nice if the upload functionality also worked in TinyMCE, because I think it's a awesome piece of work you made/integrated in Umbraco.

Best regards,

Niels Kristiansen | NIKRI
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.