A user of my component noticed this recently:
When downloading the file with the download selected button, the filename of the file that will be downloaded will contain spaces if the name of the release contains spaces. When uploading this file with the installer, joomla might experience problems with a file with spaces, which will result in a xml setup file not found error.
The file i initially uploaded didn't contain spaces.
It might be wise to replace spaces with underscores when a file is being downloaded, since not every user will come to the idea of renaming the file to a filename without spaces before uploading it.
To replicate (since i know this story might not make too much sense):
Go here:
http://developer.joomla.org/sf/frs/do/l ... _component
- select the checkbox in front of the 1.4 beta 3 release and click the download selected button
--> the filename will be 1.4. beta 3.zip
- go one level deeper, by clicking the release name
- click on the releasefile itself, yanc_1.4_beta3.zip
--> the filename will be yanc_1.4_beta3.zip
"Download selected" button will lead to file with spaces
- Websmurf
- Joomla! Intern
- Posts: 92
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
"Download selected" button will lead to file with spaces
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
Re: "Download selected" button will lead to file with spaces
Websmurf wrote:A user of my component noticed this recently:
When downloading the file with the download selected button, the filename of the file that will be downloaded will contain spaces if the name of the release contains spaces. When uploading this file with the installer, joomla might experience problems with a file with spaces, which will result in a xml setup file not found error.
The file i initially uploaded didn't contain spaces.
It might be wise to replace spaces with underscores when a file is being downloaded, since not every user will come to the idea of renaming the file to a filename without spaces before uploading it.
To replicate (since i know this story might not make too much sense):
Go here:
http://developer.joomla.org/sf/frs/do/l ... _component
- select the checkbox in front of the 1.4 beta 3 release and click the download selected button
--> the filename will be 1.4. beta 3.zip
- go one level deeper, by clicking the release name
- click on the releasefile itself, yanc_1.4_beta3.zip
--> the filename will be yanc_1.4_beta3.zip
What is happening, is thatby using the 'download selected' button, the user is getting the file delivered as a zip.
If your release is a zip, then what gets delivered is a zipped zip file. That button is designed to be able to download multiple files at one go.
To check, unzip the "1.4. beta 3.zip", and you will find "yanc_1.4_beta3.zip" inside.
was raised earlier.
http://forum.joomla.org/index.php/topic,9396.0.html
project admin need a means to disable this, as for some projects, it would be handy to have.
Last edited by philmoz on Mon Oct 17, 2005 12:42 pm, edited 1 time in total.
- Websmurf
- Joomla! Intern
- Posts: 92
- Joined: Fri Aug 19, 2005 2:23 pm
- Location: The Netherlands
- Contact:
Re: "Download selected" button will lead to file with spaces
really? didn't know that sorry for raising it again.
I agree that a project option would be nice for this yes..
I agree that a project option would be nice for this yes..
Adam van Dongen - Developer
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl
- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl