This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes What type files for upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "What type files for upload" Watch "What type files for upload" New topic
Author

What type files for upload

Paul Branigan
Greenhorn

Joined: Apr 27, 2013
Posts: 1
Hi

I have java files i would like to upload with some questions but each time I attach and submit it tells me I cand submit this type of files. What type are accepted for upload

Paul
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

For Java (and most types of source code) you can insert small sections of code encased within [code] and [/code] UBB Code Tags

For example, I have enclosed the following code inside [code tags:



As you can see, this gives line numbers, syntax highlighting, and other cool features. If you are still not sure how I did that, click the Quote button next to my post, and you should be able to see what I did.

As far as file types for upload - we only really allow images. When we allowed plain text files and zip files, we found that people were uploading entire class projects and expecting other users to debug thousands of lines of code.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What type files for upload
 
Similar Threads
form to upload files
Is there any way to do check how many files the user have uploaded?
Could not find a Content-Type for upload in struts2
Finding if files exist.. file on local machine, problems on server
Applet accessing client's file system