Edit uploadField to use third party control/ custom renderControl? Options
jwilk
Posted: Friday, January 05, 2007 6:26:52 PM
Rank: Newbie

Joined: 11/17/2006
Posts: 7
I am trying to edit the source code for the uploadField to use a third party upload tool. I am new to umbraco and I am having a little trouble finding the UI rendering in the source code. I am trying to find and edit the rendering of the uploadField. If someone could point me in the right direction or to some documentation on the source code I would really appreciate it.

Maybe I am going about this the wrong way. The root problem is that I need to upload large files. In 1.1 the posted content is read into a byte[] and then written to a file, so for files over about 64MB its failing because of insufficient system resources. The work around is to use an InputStream to write the file in chunks and flush the stream before reading the next chunk.

Is there an easier way to add a custom renderControl? Any ideas/direction appreciated!
Tobbe
Posted: Friday, January 05, 2007 6:36:24 PM
Rank: Devotee

Joined: 7/19/2006
Posts: 97
I know Darren did nice upload component.
Here it is: http://www.darren-ferguson.com/code-bank.aspx

Maybe it can solve the problem? I havn't tried it myself.
hartvig
Posted: Friday, January 05, 2007 7:00:04 PM

Rank: Addict

Joined: 3/17/2008
Posts: 982
Location: Nyborg, Denmark
No matter your solution, it's definately better to inherit from the orignal upload component than modifying the source.

Umbraco automatically identifies all rendercontrols (called IDataTypes) in assemblies located in the /bin folder. This means that you can extend and modify the rendercontrols in umbraco without modifying the source, thus not breaking the possibility for upgrades.

The source for the upload control is located in the project "umbraco.editorControls" in the folder "Upload" (I think it's called upload at least - can't remember :-)).

I'll monitor this thread, so please ask any questions along your path. The DataTypes is one of the most powerful and flexible areas of umbraco, but also one of the most abstract and complicated ones.

Cheers,
Niels...

Jeeeez, did I really start this :-)
jwilk
Posted: Friday, January 05, 2007 8:12:10 PM
Rank: Newbie

Joined: 11/17/2006
Posts: 7
Thanks all for the quick responses. Originally I wanted to avoid modifying the source as well. I think I am resorting to that because I don't fully understand the system yet. I think I have a better starting point now. Thanks again!
jwilk
Posted: Thursday, January 18, 2007 12:21:26 AM
Rank: Newbie

Joined: 11/17/2006
Posts: 7
This worked perfectly. Thanks!
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.