Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

2.4 file upload broken - applied #5547 patch, still buggy?


Go to End


2514 Views

Avatar
vr

Community Member, 9 Posts

11 May 2010 at 10:03pm

Edited: 18/05/2010 4:09am

Hi,

applied the patches from http://open.silverstripe.org/ticket/5547 to a fresh SS 2.4 installation. Seems not enough, upload works but

1. the image goes into assets instead of assets/Uploads
2. the image gets it's extension stripped, so it's not myimage.gif but myimage

Should I download cms/code/AssetAdmin.php, sapphire/filesystem/Folder.php and Upload.php from the trunk instead?

Or do I need to tweak some settings?

[edit]

I got #1 - upload into Uploads folder - working now by doing a DB-update (look for new files). Remains #2 the lost extension - no one else have this problem?

regards, vr

[edit]

#2: resolved: it has been described in ticket #5547, but is easily overlooked: trunk and branch 2.4 differ in how they treat file extensions in Folder::addUploadToFolder. Keep that in mind when applying sapphire-fileupload.patch to the stable 2.4 release.