MediaUpload goes Utilities Options
hoehler
Posted: Wednesday, May 02, 2007 12:37:36 PM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
Hi all

till Codegarden I will integrate the MediaUpload to my Utilities.

Featurelist will be:
- Supporting Umbraco 2.x with .NET 1.1, Umbraco 2.x with .NET 2.0, Umbraco 3.0 (first umbraco 2.x with .NET 2.0)
- Uploading Files and images (first jpg, then other formats)
- Scaling an image to a maximum size (first jpg, then other formats)
- Bulk upload with folder structure support.

timeline is next monday

Thomas


• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
kalpa
Posted: Wednesday, May 02, 2007 12:42:41 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 433
Location: Göteborg, Sweden
Sounds to good to be true, Thomas you rock!!

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
duckie
Posted: Wednesday, May 02, 2007 1:52:33 PM
Rank: Devotee

Joined: 8/14/2006
Posts: 212
Sounds good. If you make some general webservices, i would love adding them to the webservices-project.

Signatures suck. No reason to have one.
hartvig
Posted: Wednesday, May 02, 2007 3:06:27 PM

Rank: Addict

Joined: 3/17/2008
Posts: 808
Location: Nyborg, Denmark
Excellent Thomas. COuld you and Anders collaborate on the webservice part? I would be very cool if the utility could use the build-in webservices from v3 for much easier installation (actually only client side installation). Would make it much more useful for many people!

/n

Jeeeez, did I really start this :-)
duckie
Posted: Wednesday, May 02, 2007 4:02:16 PM
Rank: Devotee

Joined: 8/14/2006
Posts: 212
I made a quick draft for some "guidelines":
http://www.codeplex.com/umbraco/Wiki/View.aspx?title=Webservices%20for%20developers

If i can help writing them or anything, just write me. You could just make the methods you need, and i can look into putting them into the repository

Signatures suck. No reason to have one.
hoehler
Posted: Thursday, May 03, 2007 8:25:55 AM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
I made the distinction to three levels: v2 with .NET 1.1, v2 with .NET 2.0 and also v3. So therefore that there are no changes on the database structure pointing to the media or users v2 with .NET 2.0 and v3 should be the same. Thus I made the difference because I wanted to use the build in webservices with v3.

If I have to use functions which are not build in I will discuss them with Anders. I think that the only thing which can not be done with the build in ws is generating the pics and the thumbnails. But I will look into in when I am at this point.

The first I will do is to get all the features working with v2 with .NET 2.0.

Cheers, Thomas


• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
hoehler
Posted: Wednesday, May 09, 2007 9:37:55 AM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
I made the first version with mediaupload

Implemented features are:
- Creating folders
- Uploading files and images (only jpg yet)
- Scaling an image to a maximum size (only jpg yet)
- Bulk upload with folder structure support.

Download and Screenshots see here

So if you have suggestions just mail me to th at thoehler dot com or talk to me at codegarden

Thomas


• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
hoehler
Posted: Wednesday, May 09, 2007 10:03:23 AM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
To Upgrade only add
Code:
<MaxImageSize>800</MaxImageSize>
to your profile(s) and change the value of the
Code:
<WebserviceVersion>
to a number from 0 to 2.

Thomas

• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
hoehler
Posted: Tuesday, May 29, 2007 4:31:32 PM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
Version 1.3.1b is now available.

Please be aware that I didn't test this version extensivly, so it is marked as beta.

recent changes are:
- Profile selection moved from the sections to the main from
- Added new provider: Direct Database Access
- Added new provider: Webservice with umbraco 2.x running .NET 1.1
- Internal changes to an interface architecture
- Fixed bug at ClearStats

Please report bugs and wishlists to th at thoehler dot com.

Thomas

• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
hoehler
Posted: Tuesday, May 29, 2007 4:34:53 PM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
Anders, can you give me your email or msn for discussing the webservices for v3? just mail it to my mail above, thanx

Thomas

• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
hoehler
Posted: Monday, June 04, 2007 7:57:45 AM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
Thomas Höhler wrote:

Version 1.3.1b is now available.

Did someone test the new version?

Thomas

• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
kalpa
Posted: Tuesday, June 05, 2007 2:31:30 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 433
Location: Göteborg, Sweden
Hi Thomas! I've tested it with V3 Beta 1 and RC1 and mostly it work good.

I noticed that the folder upload of images hanged after some time, maybe it's related to timout in the script execution?

I also tried to clear versions in a live production site (AFTER db backup ;) I set it to leave at least 2 versions of each document, but when I checked some pages they all had 4 older versions left!? I also noticed that this didn't affect the audit trail, but I guess it's supposed to work like that...

Besides these small issues I really must say that Utilities made my day ; )

// Kalle



" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
hoehler
Posted: Tuesday, June 05, 2007 4:19:11 PM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
Hi Kalle,
thanks for testing. Therefore that I made a complete redesign of the code into an interface structure to easily add more providers and to easily add new controls with other features I am dependend on some testing outside of my test installations.

In my installations it all worked well, so which provider (v2 NET 1.1, v2 .NET 2 or direct DB-Access [v3 not implemented yet]) did you use?
Kalle Wibeck wrote:
I noticed that the folder upload of images hanged after some time, maybe it's related to timout in the script execution?

It shouldn't, therefore that each upload of a folder, an image or a file is a single webservice call. Did you use an maximum image size?
Kalle Wibeck wrote:
I also noticed that this didn't affect the audit trail, but I guess it's supposed to work like that...

I don't really understand what you mean with audit trail. Do you mean a log entry for a deleted version?
Kalle Wibeck wrote:
I also tried to clear versions in a live production site (AFTER db backup ;) I set it to leave at least 2 versions of each document, but when I checked some pages they all had 4 older versions left!?

Weird, give me the provider you used and I will look into it...

PS: Next feature is a logViewer with filtering, deleting single logs, etc.

• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
kalpa
Posted: Tuesday, June 05, 2007 4:26:13 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 433
Location: Göteborg, Sweden
Thomas Höhler wrote:

PS: Next feature is a logViewer with filtering, deleting single logs, etc.


That sounds like yummie! Give it to me ;)

I see now that i Used the provider v2/.Net 2.0 that was wrong of me since I ran it against a v3 (b1) installation, I'll redo my test...

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
kalpa
Posted: Tuesday, June 05, 2007 4:27:41 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 433
Location: Göteborg, Sweden
Hmm, of course I couldn't redo my test since V3 isn't implemented yet...
// :blush: Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
hoehler
Posted: Tuesday, June 05, 2007 6:33:29 PM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
yap, but v2 for .NET 2 is the right one, cause it is working with v3 but with the thUmbracoUtilities.asmx. The v3 provider will work with the build in webservices from v3.

Can you just clarify what you ment with audit trail?

Thomas



• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
kalpa
Posted: Tuesday, June 05, 2007 9:18:01 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 433
Location: Göteborg, Sweden
Ok, with audit trail I meant the context menu choice in Content with the same name, I thought that it where related to the versions. That's why I said that it didn't change...

// ;) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
kalpa
Posted: Tuesday, June 05, 2007 9:18:31 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 433
Location: Göteborg, Sweden
Ok, with audit trail I meant the context menu choice in Content with the same name, I thought that it where related to the versions. That's why I said that it didn't change...

// ;) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
hoehler
Posted: Tuesday, June 05, 2007 9:34:34 PM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
Aah, I was looking for a audit table in the database and I was in hectic thinking I forgot something. So the audit trail gives you the logging informations from the umbracoLog table related to the selected node not beeing 'Open' or 'System' actions. See the sql code:
Code:
select u.userName as [User], logHeader as Action, DateStamp as Date, logComment as Comment from umbracoLog inner join umbracoUser u on u.id = userId where nodeId = @id and logHeader not in ('open','system') order by DateStamp desc

One can discuss the fact that this should be deleted, but I think it is an additional information which is not directly related to the versions and it has no affect that the version, shown in the audit trail, isn't anymore in the databse. On the other hand you can also delete the log without affecting the versions.

Thomas

• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
hoehler
Posted: Tuesday, June 05, 2007 10:57:12 PM

Rank: Addict

Joined: 7/19/2006
Posts: 584
Location: Bad Homburg, Germany
Kalle Wibeck wrote:

I also tried to clear versions in a live production site (AFTER db backup ;) I set it to leave at least 2 versions of each document, but when I checked some pages they all had 4 older versions left!?

Looked into it and it is not a bug, it's a feature (yes I know, I have stolen the slogan :whistle: ). The counter for the versions runs from the first node which is older than the published one. Therefore that umbraco generates a new version after publishing with which umbraco works in the backend. So for every published node there are at least two versions in the db. Now my counter runs from this point on and skips two version before deleting the other. So you have 4 versions left in the db. Perhaps I should clearify that behaviour in the software via help button or so...

Thomas


• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
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.