Page 1 of 1

Trouble : Uploads module

Posted: Thu Jun 01, 2006 8:39 pm
by chris..
Hi ! everyone, I'm new here and my first post is my first problem with CMSMS - by the way,  I was looking for a long time a great tool like this one, thanks to the team.

So here it is : I've installed Uploads module v1.1.9 running under Canary "clean URL" 0.13, and uploading files is not a problem. But download seems to corrupt files, which are OK when viewed through file manager inside a navigator - both Firefox and IE - at least for images like .jpg .png or .gif (I cannot "view" a .rar file inside navigator, but I cannot do anything with when opened from my desktop).
I've tried several ways, with or without all options ("thumbnail", "upload as",..) and different encoded templates ( default and UTF-8 ).

A clue, anyone ?

P.S: French is my native language and I'm learning English through forums like this one. 'Hope I've been understood.

Re: Trouble : Uploads module

Posted: Wed Jun 07, 2006 9:36 pm
by chris..
I'm a realy the only one to have this problem ?  ???

Re: Trouble : Uploads module

Posted: Wed Jun 07, 2006 9:55 pm
by calguy1000
I'll check it out tonite, but it seemed to be working on my last test.

Re: Trouble : Uploads module

Posted: Thu Jun 08, 2006 9:49 pm
by chris..
Thanx for your time, I've made the buggy page accessible ( http://cms.zootalures.com/submit_your_video ) if it helps.
Please, don't be thousands to upload, it's a client'site.

Re: Trouble : Uploads module

Posted: Fri Jun 09, 2006 4:12 am
by calguy1000
I've reproduced it.

Something seems to behaving differently in the core, as the files are output with a bunch of the header content from your page until the point of the {cms_module module=uploads...} tag and then the real file is output.

so I'll have to talk to ted about this one.

Re: Trouble : Uploads module

Posted: Fri Jun 09, 2006 8:02 am
by chris..
I've opened the .jpg file in wordpad and I see what you mean. What a bunch  ;) !
Do you have the same problem with your(s) site(s), or maybe is it just a mistake in my template.

Re: Trouble : Uploads module

Posted: Sat Jun 10, 2006 2:07 am
by calguy1000
Okay, I've found a solution, with Ted's help.

Essentially, in every CreateLink that has the getfile action, we have to add a "showtemplate'=>'false' parameter
I'll work on creating a patch release, but I first have to learn how to do some svn magic.

Re: Trouble : Uploads module

Posted: Sat Jun 10, 2006 4:50 am
by calguy1000
A new version of the uploads module has been released, lots of new features, I did test the download stuff, worked fine for me with images.

You'll find out all about it here:  http://dev.cmsmadesimple.org/frs/showno ... ase_id=493

Lemme know what you find.

Re: Trouble : Uploads module

Posted: Sat Jun 10, 2006 6:55 am
by chris..
works fine, now.

Just a couple of mistakes in summary template
{$entry->category} where last /td should be /th
{$entry->summarylink} must be replaced by {$entry->description} at the end
You wrote it too fast  ;)

Thanks again for you help.