"HTTP 404 File not found" for file downloads

256 views
Skip to first unread message

Uma Jeyachandran

unread,
May 11, 2012, 4:44:33 AM5/11/12
to Google App Engine
Hi

I have an application in appspot.com. When I attempting any file
download using <a> tag in html, it throws file not found error.

Please suggest solution.

Thank you
Umamageswari

timh

unread,
May 11, 2012, 6:59:11 AM5/11/12
to google-a...@googlegroups.com
Hi

The URL in your <a> tag needs to point to either a handler or a static resource.

If your getting a 404 then the URL is incorrect and does not map to either of these.

T

Uma Jeyachandran

unread,
May 11, 2012, 1:04:14 PM5/11/12
to google-a...@googlegroups.com
Hi
 
Thanks for your reply. The <a> tag points to the correct document. And I have the document in the same folder as that of other html files.
 
The code is as follows
 
 
<a href='../ApplicationForm.doc' style='text-decoration: none' target='_blank'>
    Admission Form
<br><img  width=30% height=30% src="../download_button.png">
    </a>
 
But when I am trying to open an image using the same code above, the browser opens the image. But it doesnt open any word or text document.
 
Thanks in advance.
 
Regards
Umamageswari J
 
 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/7pW72tfXe2wJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Computer_Engineer

unread,
May 11, 2012, 1:53:29 PM5/11/12
to google-a...@googlegroups.com
Hi Uma Jeyachandran:
you should upload it as static file,this error because this file is considered in the local host and GAE doesn't find it, you should configure app.yaml and specify this 
file in it , see this link for app.yaml configuration https://developers.google.com/appengine/docs/python/config/appconfig, you can go to the log for this application to see the error description. 

Uma Jeyachandran

unread,
May 12, 2012, 1:37:17 AM5/12/12
to google-a...@googlegroups.com
Many thanks for your solution. It worked after configuring app.yaml.
 
Thanks & Regards
Umamageswari J

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/ndrCX85-4D4J.

Computer_Engineer

unread,
May 12, 2012, 5:30:07 AM5/12/12
to google-a...@googlegroups.com
You are welcome:)


On Friday, May 11, 2012 11:44:33 AM UTC+3, Uma Jeyachandran wrote:
Reply all
Reply to author
Forward
0 new messages