+ Post New Thread
Results 1 to 7 of 7
Home Access Plus+ Thread, [HAP][v8] - My Files Preview Bug in Projects:; Hi all, Just found a bug in the My Files v8 where student's couldn't upload an acceptable file. The fix ...
  1. #1
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,577
    Thank Post
    39
    Thanked 512 Times in 442 Posts
    Rep Power
    115

    [HAP][v8] - My Files Preview Bug

    Hi all,

    Just found a bug in the My Files v8 where student's couldn't upload an acceptable file. The fix is a simple one:

    Open ~/Myfiles/default.aspx in notepad

    Go to line 455

    and change it to

    Code:
    else if ("<%=AcceptedExtensions %>".toLowerCase().indexOf(this.File.name.substr(this.File.name.lastIndexOf('.')).toLowerCase()) == -1 && "<%=DropZoneAccepted %>" != "") {

  2. Thanks to nickbro from:

    s1ndr0me (26th June 2012)

  3. #2
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    320
    Thank Post
    36
    Thanked 22 Times in 20 Posts
    Blog Entries
    1
    Rep Power
    10
    hmm, my line 455 is just a "}" close bracket..
    if i replace that line, then it doesn't load properly at all.. - it just loads all of the forms with no formatting or content.. i'll post more if needed, but im presuming my line 455 isnt the same as yours...

    It looks like this (before patching):
    453 uploads.pop(this);
    454 return false;
    455 }
    456 if(this.File.size > <%=maxRequestLength%>) {

  4. #3
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,577
    Thank Post
    39
    Thanked 512 Times in 442 Posts
    Rep Power
    115
    Ah, dame, I'm on the v8 ALPHA Trunk, it's prob line 450 in that case.

    It's just a change from <%=DropZoneAccepted%> to <%=AcceptedExtensions%>

  5. #4
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    320
    Thank Post
    36
    Thanked 22 Times in 20 Posts
    Blog Entries
    1
    Rep Power
    10
    ahh cheers will try it out tomorrow!

    I moved the v8 pre-release over to be my main site after some extensive beta testing. I'll let you know if anything crops up - though it'll be easy enough to revert back to 7.10 as the booking and helpdesk config files remain the same format

    I must say i really do love it! Grand job!

  6. #5
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    320
    Thank Post
    36
    Thanked 22 Times in 20 Posts
    Blog Entries
    1
    Rep Power
    10
    It's line 451

    Change:
    Code:
    else if ("<%=DropZoneAccepted %>".toLowerCase().indexOf(this.File.name.substr(this.File.name.lastIndexOf('.')).toLowerCase()) == -1 && "<%=DropZoneAccepted %>" != "") {
    To:
    Code:
    else if ("<%=AcceptedExtensions %>".toLowerCase().indexOf(this.File.name.substr(this.File.name.lastIndexOf('.')).toLowerCase()) == -1 && "<%=DropZoneAccepted %>" != "") {

  7. Thanks to mattgrimley from:

    s1ndr0me (26th June 2012)

  8. #6

    Join Date
    Jun 2012
    Posts
    19
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    cool, that fixed the problem in v7.10 as well...
    thanks!

  9. #7

    Join Date
    Apr 2010
    Location
    Bridgend
    Posts
    22
    Thank Post
    8
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks, this fixed it for me :-)

SHARE:
+ Post New Thread

Similar Threads

  1. Error when try to use HAP+ V8 my files
    By jamesgriffiths in forum Home Access Plus+
    Replies: 4
    Last Post: 22nd May 2012, 11:09 AM
  2. [HAP+][v8] My Files
    By nickbro in forum Home Access Plus+
    Replies: 66
    Last Post: 26th February 2012, 05:01 PM
  3. [HAP+][v8] - File Server Resource Management Quota Testers
    By nickbro in forum Home Access Plus+
    Replies: 3
    Last Post: 18th February 2012, 10:07 PM
  4. HAP 7.8 Does not show my files when users logs in
    By ict_support in forum Home Access Plus+
    Replies: 0
    Last Post: 21st December 2011, 03:14 PM
  5. Gremlins in my file system
    By woody in forum Windows
    Replies: 29
    Last Post: 29th September 2006, 03:35 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
  •