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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

ResourcePage


Go to End


30 Posts   4923 Views

Avatar
innyinskip

Community Member, 46 Posts

10 November 2010 at 9:29pm

Hey Guys,

I have got the ResourcePage example from the DOM thread in this forum and built it into my site along with swfupload.
(Not using the bulkuploader module)

The problem i have is that i will be having a number of content managers reponsible for seporate sections of the site.
When i create a user and only giv them permissions to their particular part they cannot use the resource upload tab.
(Comes up with a 500 server error) but when i give them full admin rights then they can.
Is there anything i can do to set the permissions on this to allow them to upload?

Can post any code or errors if needed.
Thanks Chaps

Avatar
UncleCheese

Forum Moderator, 4102 Posts

11 November 2010 at 3:30am

It sounds like you might be using the SWFUpload module. I'd recommend switching to Uploadify. http://www.leftandmain.com/silverstripe-modules/2010/08/26/uploadify/

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
innyinskip

Community Member, 46 Posts

11 November 2010 at 3:49am

Thanks Unclecheese, Have downloaded and installed the uploadify module but no objects seem to be uploading now, i get the popup where is asks for details to upload etc ut doenst actually upload the file to the folder.
Would i have to change anything in the code to switch from SWF to uploadify?

any help is really appreciated!

Craig

Avatar
UncleCheese

Forum Moderator, 4102 Posts

11 November 2010 at 4:04am

You shouldn't need to change anything else. You're saying the resources appear as records in the DOM, but the file associated with them is not on the server? is there a file ID? And if so, what does it point to?

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
innyinskip

Community Member, 46 Posts

11 November 2010 at 4:10am

Not Exactly,

Have a look at this image:
http://i1031.photobucket.com/albums/y375/innyinskip/Issue.jpg

When i select upload doc etc..
I can select the doc/PDf/XLS to upload and uploadify attempts to upload but doesnt upload or attach where it says 'Attached Files'

Does that make sense?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

11 November 2010 at 4:30am

Try adding:

UploadifyField::show_debug();

to your _config.php. That should force the uploader to alert the server response. If it is working correctly, you should get a number. That number represents the ID of the file that was uploaded.

Also, you probably want to be doing your testing in a real browser, like Safari, FF, or Chrome. I do my best to test in IE when possible, but it's always finding new ways to bug out, so you never know.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
innyinskip

Community Member, 46 Posts

11 November 2010 at 4:56am

Yea i got an ID: <<<374

But it still ddidnt actually reference that into the Page

Avatar
UncleCheese

Forum Moderator, 4102 Posts

11 November 2010 at 5:41am

Have you confirmed that it works in a real browser or not?

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Go to Top