Not able to attach files to any of the document

Hi Everyone,
After the recent update I am not able to attach any file and receiving below error on console:

The connection to ws://localhost/socket.io/?EIO=3&transport=websocket&sid=D5p2D00nzywb8WGKAAAF was interrupted while the page was loading. desk.min.js:5490:0
GET
http://localhost/desk#List/File/Home/Attachments [HTTP/1.1 200 OK 1401ms]
GET
XHR
http://localhost/socket.io/ [HTTP/1.1 200 OK 63ms]
GET
http://localhost/assets/css/desk.min.css [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/css/list.min.css [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/css/form.min.css [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/css/report.min.css [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/css/module.min.css [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/css/erpnext.css [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/erpnext/images/splash.png [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/frappe/js/lib/jquery/jquery.min.js [HTTP/1.1 200 OK 2ms]
GET
http://localhost/assets/js/desk.min.js [HTTP/1.1 200 OK 329ms]
GET
http://localhost/assets/js/editor.min.js [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/js/list.min.js [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/js/form.min.js [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/js/report.min.js [HTTP/1.1 200 OK 1ms]
GET
http://localhost/assets/js/erpnext.min.js [HTTP/1.1 200 OK 0ms]
Expected ‘none’, URL, or filter function but found ‘Alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:68:9
Unknown property ‘-moz-box-shadow’. Declaration dropped. desk.min.css:242:17
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:290:20
Unknown property ‘-moz-box-shadow’. Declaration dropped. desk.min.css:293:17
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:308:20
Unknown property ‘-moz-box-shadow’. Declaration dropped. desk.min.css:311:17
Expected ‘none’, URL, or filter function but found ‘Alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:322:131
Expected ‘none’, URL, or filter function but found ‘Alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:323:119
Expected ‘none’, URL, or filter function but found ‘Alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:324:37
Unknown property ‘-moz-border-radius-topleft’. Declaration dropped. desk.min.css:526:28
Unknown property ‘-moz-border-radius-topright’. Declaration dropped. desk.min.css:535:29
Unknown property ‘-moz-border-radius-bottomleft’. Declaration dropped. desk.min.css:544:31
Unknown property ‘-moz-border-radius-bottomright’. Declaration dropped. desk.min.css:553:32
Unknown property ‘-moz-box-shadow’. Declaration dropped. desk.min.css:602:17
Unknown property ‘zoom’. Declaration dropped. desk.min.css:689:52
Unknown property ‘zoom’. Declaration dropped. desk.min.css:691:107
Expected ‘none’, URL, or filter function but found ‘mask(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:829:10
Error in parsing value for ‘font-size’. Declaration dropped. desk.min.css:878:12
Error in parsing value for ‘text-shadow’. Declaration dropped. desk.min.css:879:18
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:882:20
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:894:22
Unknown pseudo-class or pseudo-element ‘-webkit-inner-spin-button’. Ruleset ignored due to bad selector. desk.min.css:1056:22
Unknown pseudo-class or pseudo-element ‘-webkit-search-cancel-button’. Ruleset ignored due to bad selector. desk.min.css:1066:22
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. desk.min.css:1185:25
Expected color but found ‘auto’. Expected color but found ‘-webkit-focus-ring-color’. Expected end of value but found ‘-webkit-focus-ring-color’. Error in parsing value for ‘outline’. Declaration dropped. desk.min.css:2004:15
Expected end of value but found '\9 '. Error in parsing value for ‘margin-top’. Declaration dropped. desk.min.css:3404:18
Expected color but found ‘auto’. Expected color but found ‘-webkit-focus-ring-color’. Expected end of value but found ‘-webkit-focus-ring-color’. Error in parsing value for ‘outline’. Declaration dropped. desk.min.css:3422:15
Unknown pseudo-class or pseudo-element ‘-ms-input-placeholder’. Ruleset ignored due to bad selector. desk.min.css:3466:14
Unknown pseudo-class or pseudo-element ‘-webkit-input-placeholder’. Ruleset ignored due to bad selector. desk.min.css:3469:15
Expected media feature name but found ‘-webkit-min-device-pixel-ratio’. desk.min.css:3485:19
Expected end of value but found '\9 '. Error in parsing value for ‘margin-top’. Declaration dropped. desk.min.css:3536:18
Unknown property ‘touch-action’. Declaration dropped. desk.min.css:3874:18
Unknown property ‘user-select’. Declaration dropped. desk.min.css:3879:21
Expected color but found ‘auto’. Expected color but found ‘-webkit-focus-ring-color’. Expected end of value but found ‘-webkit-focus-ring-color’. Error in parsing value for ‘outline’. Declaration dropped. desk.min.css:3891:15
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:3912:10
Expected ‘none’, URL, or filter function but found ‘progid’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:4372:10
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5925:20
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5926:25
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5941:20
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5942:25
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5949:20
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5950:25
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5957:20
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5958:25
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5965:20
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:5966:25
Unknown property ‘zoom’. Declaration dropped. desk.min.css:5978:6
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:6574:10
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:6582:10
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:6651:10
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:6655:10
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:6723:10
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:6727:10
Expected media feature name but found ‘transform-3d’. desk.min.css:6959:16
Expected media feature name but found ‘-webkit-transform-3d’. desk.min.css:6959:32
Error in parsing value for ‘perspective’. Declaration dropped. desk.min.css:6968:25
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:7030:10
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:7034:20
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:7035:25
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:7036:20
Expected ‘none’, URL, or filter function but found ‘progid’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:7038:10
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:7044:20
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:7045:25
Error in parsing value for ‘background-image’. Declaration dropped. desk.min.css:7046:20
Expected ‘none’, URL, or filter function but found ‘progid’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:7048:10
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:7055:10
Expected end of value but found '\9 '. Error in parsing value for ‘background-color’. Declaration dropped. desk.min.css:7110:25
Unknown pseudo-class or pseudo-element ‘-webkit-input-placeholder’. Ruleset ignored due to bad selector. desk.min.css:7504:31
Unknown pseudo-class or pseudo-element ‘-ms-input-placeholder’. Ruleset ignored due to bad selector. desk.min.css:7510:30
Expected media feature name but found ‘-webkit-min-device-pixel-ratio’. desk.min.css:7560:19
Expected declaration but found ‘’. Skipped to next declaration. desk.min.css:7576:2
Unknown property ‘speak’. Declaration dropped. desk.min.css:7582:7
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:7637:20
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:7646:20
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:7655:20
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:7664:20
Unknown property ‘-moz-border-radius’. Declaration dropped. desk.min.css:7673:20
Expected declaration but found '
’. Skipped to next declaration. desk.min.css:7803:2
Expected declaration but found ‘’. Skipped to next declaration. desk.min.css:7807:2
Expected ‘none’, URL, or filter function but found ‘progid’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:7870:10
Expected ‘none’, URL, or filter function but found ‘progid’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:7878:10
Expected ‘none’, URL, or filter function but found ‘progid’. Error in parsing value for ‘filter’. Declaration dropped. desk.min.css:7886:10
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. desk.min.css:9039:25
Unknown property ‘user-select’. Declaration dropped. desk.min.css:9043:13
Unknown property ‘-moz-box-shadow’. Declaration dropped. desk.min.css:9581:17
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘Filter’. Declaration dropped. desk.min.css:10010:10
Expected declaration but found '
’. Skipped to next declaration. desk.min.css:10063:2
Unknown property ‘speak’. Declaration dropped. desk.min.css:10065:7
Unknown property ‘whitespace’. Declaration dropped. desk.min.css:10126:12
Unknown property ‘appearance’. Declaration dropped. desk.min.css:11000:12
Error in parsing value for ‘border-radius’. Declaration dropped. desk.min.css:11057:19
Unknown property ‘whitespace’. Declaration dropped. desk.min.css:11129:12
Expected declaration but found ‘*’. Skipped to next declaration. desk.min.css:11362:4
Unknown property ‘speak’. Declaration dropped. desk.min.css:11364:9
Error in parsing value for ‘border-radius’. Declaration dropped. list.min.css:324:17
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. report.min.css:221:10
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. report.min.css:230:10
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped. report.min.css:341:10
GET
http://localhost/assets/frappe/css/font/open-sans/OpenSans-Regular-webfont.woff [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/frappe/sounds/email.mp3 [HTTP/1.1 206 Partial Content 0ms]
GET
http://localhost/assets/frappe/sounds/submit.mp3 [HTTP/1.1 206 Partial Content 0ms]
GET
http://localhost/assets/frappe/sounds/cancel.mp3 [HTTP/1.1 206 Partial Content 0ms]
GET
http://localhost/assets/frappe/sounds/delete.mp3 [HTTP/1.1 206 Partial Content 0ms]
GET
http://localhost/assets/frappe/sounds/click.mp3 [HTTP/1.1 206 Partial Content 0ms]
GET
http://localhost/assets/frappe/sounds/error.mp3 [HTTP/1.1 206 Partial Content 0ms]
GET
XHR
http://localhost/socket.io/ [HTTP/1.1 200 OK 2ms]
Expected media feature name but found ‘-webkit-min-device-pixel-ratio’. desk:101:8
Unknown property ‘font-color’. Declaration dropped. desk:110:11
GET
https://secure.gravatar.com/avatar/083f6224937cf5c907b9b371fc98a31e [HTTP/2.0 200 OK 369ms]
GET
http://localhost/assets/erpnext/images/erp-icon.svg [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/frappe/css/font/open-sans/OpenSans-Regular-webfont.woff [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/frappe/css/font/open-sans/OpenSans-Bold-webfont.woff [HTTP/1.1 200 OK 0ms]
GET
http://localhost/assets/frappe/css/octicons/octicons.woff [HTTP/1.1 200 OK 0ms]
GET
XHR
http://localhost/ [HTTP/1.1 200 OK 188ms]
GET
XHR
http://localhost/socket.io/ [HTTP/1.1 200 OK 2ms]
Media resource http://localhost/assets/frappe/sounds/email.mp3 could not be decoded. desk
All candidate resources failed to load. Media load paused. desk
Media resource http://localhost/assets/frappe/sounds/submit.mp3 could not be decoded. desk
All candidate resources failed to load. Media load paused. desk
Media resource http://localhost/assets/frappe/sounds/cancel.mp3 could not be decoded. desk
All candidate resources failed to load. Media load paused. desk
Media resource http://localhost/assets/frappe/sounds/delete.mp3 could not be decoded. desk
All candidate resources failed to load. Media load paused. desk
GET
http://localhost/assets/frappe/css/font/open-sans/OpenSans-Semibold-webfont.woff [HTTP/1.1 200 OK 43ms]
GET
XHR
http://localhost/ [HTTP/1.1 200 OK 34ms]
GET
XHR
http://localhost/ [HTTP/1.1 200 OK 63ms]
POST
XHR
http://localhost/ [HTTP/1.1 200 OK 38ms]
Media resource http://localhost/assets/frappe/sounds/click.mp3 could not be decoded. desk
All candidate resources failed to load. Media load paused. desk
Media resource http://localhost/assets/frappe/sounds/error.mp3 could not be decoded. desk
All candidate resources failed to load. Media load paused. desk
GET
XHR
http://localhost/socket.io/ [HTTP/1.1 200 OK 979ms]
GET
http://localhost/socket.io/ [HTTP/1.1 101 Switching Protocols 1ms]
GET
http://localhost/assets/frappe/css/font/fontawesome-webfont.woff [HTTP/1.1 200 OK 55ms]
POST
XHR
http://localhost/ [HTTP/1.1 200 OK 365ms]
POST
XHR
http://localhost/ [HTTP/1.1 200 OK 243ms]

I appreciate if anyone can let me know about the same.

Regards
Ruchin Sharma

Does, anyone have any idea about this?

Which browser are you using?

Mozilla Firefox

Try attaching the file and check for the console error or network tab. This console log doesn’t show any problems regarding file attachment.

@Anand
I tried that too, but I didn’t find any error there?
Is there anything specific that I need to check there?

Regards
Ruchin Sharma

@ruchin78

What exactly is happening when you say ‘not able to attach’? Can you share screen capture / gif? http://www.cockos.com/licecap/

Hi @Anand,

Actually, nothing happens when I press the “Attach” button.

So, should I leave this, and re-install the ERPNext or is there any solution exists for the same?

Strange. Check the last few POST request’s response values.

@Anand

I am not able to understand that stuff, can you tell me what specifically, I need to check over there?

Regards
Ruchin Sharma

I am getting this:

Request URL: http://localhost/
Request Method: POST
Status Code: HTTP/1.1 200 OK
Request Headers 15:34:51.000
X-Requested-With: XMLHttpRequest
X-Frappe-CSRF-Token: 0f5ae5ea0debb4761517c5eca0ac1f9b17276635fff021fc6636f7c1
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:39.0) Gecko/20100101 Firefox/39.0
Referer: http://localhost/desk
Pragma: no-cache
Host: localhost
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 47
Connection: keep-alive
Cache-Control: no-cache
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: application/json, text/javascript, /; q=0.01
Sent Cookie
user_image: “https://secure.gravatar.com/avatar/083f6224937cf5c907b9b371fc98a31e?d=retro
user_id: ruchin.sharma@misport.com
system_user: yes
sid: 2a2f7dbbb419509302fa5eeae0872f84be64dc0bd860b49d68fb4153
full_name: Ruchin Sharma
Request Body
cmd=frappe.desk.notifications.get_notifications
Response Headers Δ239ms
Server: nginx/1.4.6 (Ubuntu)
Date: Mon, 25 Apr 2016 10:04:51 GMT
Content-Type: application/json; charset: utf-8
Content-Length: 566
Connection: keep-alive
Received Cookie
user_image: “https://secure.gravatar.com/avatar/083f6224937cf5c907b9b371fc98a31e?d=retro
user_id: ruchin.sharma@misport.com
system_user: yes
sid: 2a2f7dbbb419509302fa5eeae0872f84be64dc0bd860b49d68fb4153
full_name: Ruchin Sharma
Response Body Δ0ms
{“message”:{“open_count_doctype”:{“Time Log”:0,“Time Log Batch”:0,“Lead”:0,“Material Request”:5,“Scheduler Log”:0,“BOM”:1,“Issue”:0,“ToDo”:1,“Purchase Receipt”:1,“Job Applicant”:0,“Purchase Invoice”:0,“Stock Entry”:0,“Quotation”:0,“Production Order”:1,“Task”:1,“Purchase Order”:15,“Project”:1,“Warranty Claim”:0,“Contact”:0,“Expense Claim”:0,“Leave Application”:0,“Opportunity”:0,“Delivery Note”:2,“Sales Invoice”:4,“Communication”:0,“Sales Order”:6,“Journal Entry”:0,“Event”:0},“open_count_module”:{},“open_count_other”:{“Messages”:14,“Likes”:0},“new_messages”:[]}}

Request URL: http://localhost/
Request Method: POST
Status Code: HTTP/1.1 200 OK
Request Headers 15:35:21.000
X-Requested-With: XMLHttpRequest
X-Frappe-CSRF-Token: 0f5ae5ea0debb4761517c5eca0ac1f9b17276635fff021fc6636f7c1
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:39.0) Gecko/20100101 Firefox/39.0
Referer: http://localhost/desk
Pragma: no-cache
Host: localhost
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 47
Connection: keep-alive
Cache-Control: no-cache
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: application/json, text/javascript, /; q=0.01
Sent Cookie
user_image: “https://secure.gravatar.com/avatar/083f6224937cf5c907b9b371fc98a31e?d=retro
user_id: ruchin.sharma@misport.com
system_user: yes
sid: 2a2f7dbbb419509302fa5eeae0872f84be64dc0bd860b49d68fb4153
full_name: Ruchin Sharma
Request Body
cmd=frappe.desk.notifications.get_notifications
Response Headers Δ365ms
Server: nginx/1.4.6 (Ubuntu)
Date: Mon, 25 Apr 2016 10:05:21 GMT
Content-Type: application/json; charset: utf-8
Content-Length: 566
Connection: keep-alive
Received Cookie
user_image: “https://secure.gravatar.com/avatar/083f6224937cf5c907b9b371fc98a31e?d=retro
user_id: ruchin.sharma@misport.com
system_user: yes
sid: 2a2f7dbbb419509302fa5eeae0872f84be64dc0bd860b49d68fb4153
full_name: Ruchin Sharma
Response Body Δ0ms
{“message”:{“open_count_doctype”:{“Time Log”:0,“Time Log Batch”:0,“Lead”:0,“Material Request”:5,“Scheduler Log”:0,“BOM”:1,“Issue”:0,“ToDo”:1,“Purchase Receipt”:1,“Job Applicant”:0,“Purchase Invoice”:0,“Stock Entry”:0,“Quotation”:0,“Production Order”:1,“Task”:1,“Purchase Order”:15,“Project”:1,“Warranty Claim”:0,“Contact”:0,“Expense Claim”:0,“Leave Application”:0,“Opportunity”:0,“Delivery Note”:2,“Sales Invoice”:4,“Communication”:0,“Sales Order”:6,“Journal Entry”:0,“Event”:0},“open_count_module”:{},“open_count_other”:{“Messages”:14,“Likes”:0},“new_messages”:[]}}

@ruchin78 can you reproduce on demo.erpnext.com?

What did you use to install erpnext and when? This clearly looks like a setup issue.

It was working perfectly before update and this setup is working since last few months.

Regards
Ruchin Sharma