+ Post New Thread
Results 1 to 8 of 8
Home Access Plus+ Thread, HAP Error - you have attempted to upload a restricted file type! in Projects:; I have a strange one for a Monday morning, a member of staff got the attached error - "you have ...
  1. #1

    Join Date
    Dec 2009
    Location
    Cranleigh, Surrey
    Posts
    29
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    10

    HAP Error - you have attempted to upload a restricted file type!

    I have a strange one for a Monday morning, a member of staff got the attached error - "you have attempted to upload a restricted file type!" when adding a .jpg to a Shared drive, I have tested as the same type of user and it works fine for me, so not sure why it would not for her.

    HAP Error - you have attempted to upload a restricted file type!-hap-upload-failed-restricted-filetype.png

    The Event Log shows this:
    ----------------------------------
    Event Type: Error
    Event Source: Home Access Plus+
    Event Category: None
    Event ID: 0
    Date: 16/03/2013
    Time: 15:18:00
    User: N/A
    Computer: GSS-SR-002
    Description:
    An error occurred in Home Access Plus+

    Page: /HAP/api/myfiles-upload/W/Design |26 Technology/D |26 T/STUDENTS/Miss Jones/Year 11 GP/Mon 6 |26 Wed 34/Nadia/Year 11/
    ----------------------------------

    Any assistance greatly appreciated.
    Thanks
    Guy

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,588
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Can you do some HAP+ JSON Debugging please, see what it's doing

  3. #3

    Join Date
    Dec 2009
    Location
    Cranleigh, Surrey
    Posts
    29
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    10
    I will do, if I can replicate the fault, which I can't currently!
    Will see if I can reproduce on the same PC as it occurred on.
    Thanks

  4. #4

    Join Date
    May 2007
    Location
    Kent
    Posts
    125
    Thank Post
    39
    Thanked 11 Times in 10 Posts
    Rep Power
    28
    Hi. I know this is a bit old now, but recently had a similar problem. Turned out that it was caused by capitalisation of the file extension. JPG instead of jpg.

  5. 2 Thanks to mitchell1981:

    gomalley (17th April 2013), nickbro (16th April 2013)

  6. #5
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,588
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Thanks for the info mitchell, I'll add some stuff to make the extension lowercase when doing the checks

  7. Thanks to nickbro from:

    gomalley (17th April 2013)

  8. #6

    Join Date
    Dec 2009
    Location
    Cranleigh, Surrey
    Posts
    29
    Thank Post
    6
    Thanked 2 Times in 2 Posts
    Rep Power
    10
    Thanks Mitchell for finding the cause and Nick for working on a solution, is there somewhere I can enter .JPG as allowed as a fix in the meantime?
    Many Thanks
    Guy

  9. #7
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,588
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Add it as a allowed file type should do it. v9 is due out on Friday

  10. #8
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,588
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Quote Originally Posted by gomalley View Post
    I have a strange one for a Monday morning, a member of staff got the attached error - "you have attempted to upload a restricted file type!" when adding a .jpg to a Shared drive, I have tested as the same type of user and it works fine for me, so not sure why it would not for her.

    Click image for larger version. 

Name:	HAP - Upload Failed - restricted filetype.png 
Views:	349 
Size:	154.9 KB 
ID:	17569

    The Event Log shows this:
    ----------------------------------
    Event Type: Error
    Event Source: Home Access Plus+
    Event Category: None
    Event ID: 0
    Date: 16/03/2013
    Time: 15:18:00
    User: N/A
    Computer: GSS-SR-002
    Description:
    An error occurred in Home Access Plus+

    Page: /HAP/api/myfiles-upload/W/Design |26 Technology/D |26 T/STUDENTS/Miss Jones/Year 11 GP/Mon 6 |26 Wed 34/Nadia/Year 11/
    ----------------------------------

    Any assistance greatly appreciated.
    Thanks
    Guy
    Bug Confirmed, and Fixed in https://hap.codeplex.com/SourceControl/changeset/83424, will be in the v9 release

  11. Thanks to nickbro from:

    gomalley (22nd April 2013)

SHARE:
+ Post New Thread

Similar Threads

  1. Restrict file types uploaded to moodle 1.9
    By tj2419 in forum Windows Server 2008
    Replies: 1
    Last Post: 9th December 2012, 07:11 PM
  2. BEST CONCERT YOU HAVE BEEN TO
    By BIST in forum Other Stuff
    Replies: 68
    Last Post: 1st December 2010, 12:16 PM
  3. [Website] Rise up you have nothing to lose but your chains!
    By somabc in forum Jokes/Interweb Things
    Replies: 9
    Last Post: 9th April 2010, 08:00 AM
  4. [Pics] Look what you have done to my car !!
    By mattx in forum Jokes/Interweb Things
    Replies: 21
    Last Post: 24th March 2010, 01:59 PM
  5. Replies: 42
    Last Post: 10th April 2007, 09:18 AM

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
  •