Discuss about Group-Office development here
when uploading/copying/moving files per Webinterface, I've done a few changes:
- I've added $GO_CONFIG->user_quota, which should have the maximum disk space a user could use (at the moment in kB, maybe we should change it to bytes?).
- The upload.inc of the filesystem checks if this global variable is 0, and if it is not, then it checks how much free disk space the user has and displays this value.
- In the filesystem class I've added a global variable action_result, which is set by copy() and stores an error message if the function was not able to copy the file, so the upload/copy/whatever which calls copy() can access the reason why it can't copy the file, and therefore inform the user. The function copy() also checks GO_CONFIG->user_quota and disallows the copy operation when there is not enough space available.
- The error messages which are in action_result should be translated.
- action_result should also be set by move() and other functions
- the interface should check action_result if a function fails. currently only implemented in upload function.
- Group-Office Developer
- Posts: 214
- Joined: Tue Apr 20, 2004 1:45 pm
- Location: Vienna, Austria
Return to Development Chats
Who is online
Users browsing this forum: No registered users and 1 guest