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.

Installing SilverStripe

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

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

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


Reply

1716 Views

Avatar
vr

11 May 2010 at 10:03pm (Last edited: 18 May 2010 4:09am), Community Member, 9 Posts

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.