When I edit locations within viewer 2.1, all my edits save properly but clicking the link to the attachment opens another window but the file doesn't open and I get a dreaded HTTP 500 Internal Server Error. How do I go about correcting this?
Also, is there a limit to the size of file you can attach? Having trouble with anything over 5 MB.
What is the URL that it is trying to open? It should probably be similar to something like:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0... ...
Yes, both the web server and ArcGIS Services can limit the file size. Both are configurable.
.NET
The max allowed upload size is the smallest value defined by:
a. <MaxUploadSize>20480</MaxUploadSize> as defined in rest.config.
or
b. ASP .NET Max Request length as defined in web.config
<httpRuntime maxRequestLength=10240" />.
See http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=35971 for more info.
Java
The default max allowed upload size is 20 MB. This can be modified by setting "config.max-upload-size" property in rest-config.properties.
From "Problem: How do I upload large attachments?" in the FAQ:
http://help.arcgis.com/en/webapi/flex/help/index.html#references/faq.htm
There seem to be some authentication issue going on with your web server.
If I navigate to it via the REST Service Directory, I can see that it has one PDF attachment:
http://emrgisviewer.emr-inc.com/ArcGIS/rest/services/CPR/CPR_Data/FeatureServer/2/818/attachments
but when I click the PDF link:
http://emrgisviewer.emr-inc.com/ArcGIS/rest/services/CPR/CPR_Data/FeatureServer/2/818/attachments/80...
I get an "Unauthorized" error:
Server Error - The remote server returned an error: (401) Unauthorized.
Code: 500