+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
Home Access Plus+ Thread, Drag files onto folder in Projects:; We have a requirement that I don't think can be fulfilled via HAP.... but I'd HAPpy if I could be ...
  1. #1

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Drag files onto folder

    We have a requirement that I don't think can be fulfilled via HAP.... but I'd HAPpy if I could be proved wrong - and so would teachers and students


    We have a "dropbox" folder structure where students can drop files (completed assignments etc) into a teacher's folder using Windows Explorer but cannot actually open the folder. The students have "write" rights but not "read" rights to each teacher's Dropbox. The structure goes something like this
    Dropbox (students have read rights)
    |- Mr Smith (students can only write)
    |- Mrs Jones (students can only write)
    -_ etc, etc


    It'd be good if students could open the top level folder (Dropbox) in HAP, displaying the teachers' folders and then drag their file(s) to the appropriate teacher's folder, just like they do when on the school network.


    In HAP, they can see the teachers' folders but attempts to drag and drop don't work. Presumably you must have a folder open to drag and drop into it


    If they try to "Open" a teacher's folder, they get a message similar to the following, which is to be expected: "Access to the path '\\server\dropbox$\Monsieur-Dowling-Yr-7-French\' is denied".


    Here's the entry from hapconfig.xml:
    <mapping drive="U" name="Dropbox Student" enablereadto="test_students" enablewriteto="test_students" enablemove="True" usagemode="DriveSpace">\\server\dropbox$</mapping>


    Is there some way we might to be able achieve this?


    Thanks
    (In case you need to know, Our HAP is v8.1)

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    The homework section is what you are after, have a look at /myfiles/homework.aspx

  3. #3
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Morning @nickbro

    homework.aspx doesnt load for me.. I get:
    Code:
    Server Error in '/hap' Application.
    Object reference not set to an instance of an object.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error: 
    Line 112:                    return false;
    Line 113:                }
    Line 114:                if(this.File.size > <%=maxRequestLength%>) {
    Line 115:					alert(this.File.name + " " + hap.common.getLocal("myfiles/upload/filesizewarning"));
    Line 116:                uploads.pop(this);
    It's been fairly consistent since homework.aspx first appeared in the builds - i saw it, i just didnt think it was ready hence the lack of a bug report!


    Regards,
    Matt

  4. #4

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I've looked at the homework.aspx file but I've no idea how to interpret it. Will documentation be available in the future?

    Thanks

  5. #5
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    I'll try and fix this issue tonight, VS2012 doesn't want to work for me today in work

  6. #6
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    thanks @nickbro - sorry @peterdwyer I hadn't intended to hijack this thread, but i'm interested in the same thing you are talking about

  7. #7
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    @mattgrimley here's the fix:

    Open ~/app_localresources/en-gb/strings.xml

    Add under
    HTML Code:
    <homework>
    HTML Code:
    <path>Path:</path>
    Should look like
    HTML Code:
     <homework>
          <path>Path:</path>
          <homework>My Files - Homework</homework>
          <new>New</new>
          <edit>Edit</edit>
          <remove>Remove</remove>
          <title>Title</title>
          <description>Description</description>
          <start>Start</start>
          <end>End</end>
          <students>Students</students>
          <teachers>Additional Teachers</teachers>
          <confirmremove>Are you sure you want to remove this homework?</confirmremove>
          <upload>Upload Homework</upload>
        </homework>
      </myfiles>
    </hapStrings>

  8. #8
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    Add update with this

  9. #9

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Replaced the two files in the zip and updated ~/app_localresources/en-gb/strings.xml

    I then ran ~/MyFiles/Homework.aspx. It started up OK and I selected "New". I then added some test and as I chose a few students, up popped the message "Index was out of range...." See attached file
    homework01.png

    Logged in as a teacher and ran it (had previously ran with admin account). Didn't chose "additional teacher" and when I clicked on "save", I got "Not Found" (see attached homework02.jpg)

    Also changed the "path" to match a local path, without any success

    I was running Firebug but nothing changed as I ran it.

    Perhaps I've done something wrong
    Attached Thumbnails Attached Thumbnails Drag files onto folder-homework01.png   Drag files onto folder-homework02.png  

  10. #10
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    Ok, I think I've fixed it, you can download the fix from codeplex: https://hap.codeplex.com/downloads/get/502995

  11. #11

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Copied the files and ran it. When I ran MyFiles/Homework.aspx, this is what I got.

    Thanks

    Server Error in '/hap' Application.


    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 118: return false; Line 119: } Line 120: if(this.File.size > <%=maxRequestLength%>) { Line 121: alert(this.File.name + " " + hap.common.getLocal("myfiles/upload/filesizewarning")); Line 122: uploads.pop(this);

    Source File: c:\inetpub\wwwroot\hap\MyFiles\Homework.aspx Line: 120

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.Controls.LocalResource.Render(HtmlTextWrit er writer) +135 [ArgumentOutOfRangeException: The string myfiles/homework/path cannot be found] HAP.Web.Controls.LocalResource.Render(HtmlTextWrit er writer) +508 ASP.myfiles_homework_aspx.__Render__control3(HtmlT extWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\hap\MyFiles\Homework.aspx:120 System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +131 System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +246 System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer) +315 System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer) +48 System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +246 System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +246 System.Web.UI.Page.Render(HtmlTextWriter writer) +40 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5290


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

  12. #12
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    Don't forget to do the steps in Drag files onto folder

  13. #13

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Sorry,

    I'd made the change on my test environment and was testing on the production one.

    Yes it works but I can't work out how to use it. Is there a video?

    In any case, I'm not sure if this solution might fit our need, which is a procedure that we've had in place for many years. That is, for a student to be able drag files onto a folder that they only have "write" access to

    Thank you

  14. #14
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    You can try disabling the read/write checks via the config page. This should allow users to upload to the folder but not read to it. However HAP+ does a check on the folder to see if the file exists, so it may throw an error when it tries to do that.

  15. #15

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,148
    Thank Post
    403
    Thanked 623 Times in 569 Posts
    Rep Power
    181

    Drag files onto folder

    Will you be updating the release with the fixes as I get that error too.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Mass Copy of Files and Folders
    By originofsymmetry in forum Scripts
    Replies: 6
    Last Post: 2nd October 2007, 12:16 PM
  2. Restrict "Search files and folders"
    By sandfie in forum Windows
    Replies: 4
    Last Post: 26th March 2007, 10:45 PM
  3. Replies: 4
    Last Post: 15th November 2006, 03:19 PM
  4. Error deleting files or folder message
    By speckytecky in forum How do you do....it?
    Replies: 1
    Last Post: 15th November 2006, 02:21 PM
  5. Replies: 3
    Last Post: 25th September 2006, 12:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •