Advanced file sharing

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/8/2011 12:45:56 PM
Gravatar
Total Posts 18439

Re: Advanced file sharing

If you add users to roles that can upload to user location and also add them to roles that can delete files in the editor, then they will be able to use the real file manager that is intended for users and will see the file manager link in the toolbar at the bottom of most skins.

Shared Files feature is not meant for user files and I don't want to make it for user files so if you want to customize it you should clone it into a separate independent feature then you can modify it as a custom feature as much as you like with no problems and still be able to upgrade.

Small code changes can be submitted here in the forums and if I agree I will integrate them. Larger changes require a contributor agreement, see contribution guidelines here:

http://www.mojoportal.com/contribute.aspx

Best,

Joe

1/9/2011 6:06:32 AM
Gravatar
Total Posts 192

Re: Advanced file sharing

well, Anyways, I have implemented the features I needed.

I wanted users just to be able to delete the files they had uploaded themselves, and not have global delete permission.

and I think either stylshout-coolwater skin didn't support this; filemanager would be shown only if you had editor permission on the page, or maybe I was mistake.

Thanks.

additional work in my task list for cloning. :)

1/9/2011 6:28:34 AM
Gravatar
Total Posts 18439

Re: Advanced file sharing

just a note that the delete permissions are not global if the user can only upload to a user specific location then he can only delete the files he uploaded. The wysiwyg editor has no delete ability by default but the file manager does that is why users must also be allowed to delete files or they are not allowed to use file manager at all. The link should show up if the user has a role with both upload permissions and delete permissions

In any case if you clone the shared files feature and make it meet your needs that is fine.

Best,

Joe

1/13/2011 9:24:05 AM
Gravatar
Total Posts 192

Re: Advanced file sharing

1. I wanted to limit the total size of files uploaded for a specific user. I could do it, but the problem is that size of files is checked when file is on server. the user first uploads the file to server and waits some time, then he understands he can't upload a file with that size and file is not saved on server. I prefer to tell the user he can't upload the file before sending it to server. some help please.

2. there is a problem with filesharing.

in \mojoPortal.Features.UI\SharedFiles\SharedFilesModule.ascx.designer.cs with .net 3.5 (i use visual studio 2010 on win7 32bit)

when trying to change something on the user control, auto generated code will produce this code on line 69:
protected global::Microsoft.Web.Preview.UI.Controls.UpdatePanel upFiles;

but it produces an error.

changing it to:

protected global::System.Web.UI.UpdatePanel upFiles;

will make the error go away. don't know what's wrong.

3. I couldn't show my error messages in lblError. how can I use it?

1/13/2011 10:13:39 AM
Gravatar
Total Posts 18439

Re: Advanced file sharing

1. I have no solution for you and it is not on me to come up with a solution for you. Server side code can only know the size of a file after it is uploaded so we can enforce disk space quotas but not prevent a user from trying to upload a file that might be too large. It is a difficult problem to find a way to determine the file size on the client machine before uploading, if you google for "asp.net determine file size before uploading" you can learn about the problem and various approaches to the problem none of which are easy or ideal.

2. I've just pushed a change that corrected a mistake in mojoPortal.Features.UI/Web.net35.config you will need to get the latest changes and then to use .NET 3.5 you need to copy the contents from the file mojoPortal.Features.UI/Web.net35.config into the corresponding Web.config.

This will solve the problem about the Update panel in the designer file.

Once you modify any mojoPortal code it is on you to solve your own problems and make it work, you should clone it not modify it directly and then the same applies, it is on you to understand the code in your clone and how to solve your own problems, I'm not here to do that for you and am not interested in supporting your clone or your modifications to mojoPortal code. I have enough to do supporting the official code and the features I ship. You may ask for help but I am under no obligation to help with every problem or goal you may have so do not have the expectation that I will help. If it is something I can easily help with I may help but I am very busy with my own work.

Best,

Joe

1/14/2011 8:29:04 AM
Gravatar
Total Posts 192

Re: Advanced file sharing

I don't expect you to answer all my questions, and thank you for all the great works you have done. but sometimes you and maybe others can help. I just ask my questions. and thank you whether you answer them or not.

 

You must sign in to post in the forums. This thread is closed to new posts.