File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "What type files for upload" Watch "What type files for upload" New topic

What type files for upload

Paul Branigan

Joined: Apr 27, 2013
Posts: 1

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

Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11765

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:
subject: What type files for upload
It's not a secret anymore!