Questions tagged [http-upload]

26 questions
68
votes
1 answer

multipart/form-data vs application/octet-stream

I'm creating a simple REST API for uploading files. From other API's I found they use "multipart/form-data" content type. But for me, it looks like "application/octet-stream" is much simpler. If I don't intend to send any more form data with the…
levk
  • 691
  • 1
  • 5
  • 4
42
votes
3 answers

Whats Content-Type value within a HTTP-Request when uploading content?

I need to extract uploads from http-trafic. How could do that? First of all, the request-method will be POST. Secondly, there will be a Content-Type header-field. I do not want to extract formular-data, but uploads like mail-attachements.
user1826831
  • 735
  • 3
  • 9
  • 17
6
votes
2 answers

How to use a Seafile generated upload-link w/o authentication token from command line

With Seafile one is able to create a public upload link (e.g. https://cloud.seafile.com/u/d/98233edf89/) to upload files via Browser w/o authentication. Seafile webapi does not support any upload w/o authentication token. How can I use such kind of…
lmen6e
  • 221
  • 4
  • 8
5
votes
1 answer

Upload user file to google drive through django web application

I want to use Google Drive as storage for my Django project (in particular I need to store images taken by users). What I'm trying to achieve is the following: Users upload their images using a form. These files must be somehow routed through…
Sirion
  • 804
  • 1
  • 11
  • 33
3
votes
3 answers

Passing parameters along with a multipart/form-data upload form (Java Http Post Upload)

I have a code base which currently uploads file using Post and has enctype as multipart/form-data. Now I need to include some form items i.e. some parameters will also be passed along with the file upload. I have my html form created out but I…
mona
  • 6,079
  • 12
  • 41
  • 46
2
votes
3 answers

How do you save multitype/form data to a hard file in Python with FastAPI UploadFile?

https://fastapi.tiangolo.com/tutorial/request-files/ *Solved Below * I've gotten an appropriately sized array of bytes and I'm not sure how to parse it correctly to save received form file data. Almost working: @app.post("/uploadfiles/") async def…
2
votes
1 answer

Arbitrary Number of File Uploads in Django

What is the best way to allow a user to do an arbitrary number of file uploads with Django? If I knew I was going to allow the user to do up to two file uploads then I could just do this in my forms.py... from django import forms class…
Chris W.
  • 37,583
  • 36
  • 99
  • 136
2
votes
1 answer

How to configure open-fire server with HttpUploadComponent for offline file transferring?

I use Openfire with Conversations and would like to implement offline file transferring with HttpUploadComponent, I have copied httpupload folder inside openfire folder as below screenshot: Then I did below configurations in openfire: I also…
Davoud
  • 2,576
  • 1
  • 32
  • 53
2
votes
1 answer

Carrierwave mongoid upload. Getting an undefined method `empty?' for #

I'm trying to upload an image file to my rails server, but I keep hitting a wall. This is my form themed_controller/new , = form_for(@campaign, validate: true, :html => {:multipart => true}) do .form-group …
skmvasu
  • 3,098
  • 3
  • 24
  • 29
2
votes
4 answers

Rename file with uploadify

I'm using uploadify with asp and I want to change the file name to the current date+time when the file is complete. Is there any way to do it? this is my JS code: $('#fileUploadJquery').uploadify({ 'uploader' : …
Chaofix
  • 61
  • 1
  • 2
  • 7
2
votes
4 answers

Multiple image upload without flash

I want to use HTML and PHP for 9 or more images upload. The problem is that I don't want 9 upload fields because it looks bad. Does anybody have any suggestions ? Maybe examples ? Thanks.
Manny Calavera
  • 6,815
  • 20
  • 60
  • 85
1
vote
2 answers

HTTP Status code in Java server based web application

I have a web application in Java which does data exchange using XML. I have written a servlet and it uses HTTP Post to upload the XML file from a particular client. Once the Post method is completed successfully, it sends 200 OK message to the…
mona
  • 6,079
  • 12
  • 41
  • 46
1
vote
1 answer

Displaying recently uploaded images from remote FTP server in PHP

Recently, I have created an upload form in which users can upload their files to a remote FTP server. Until now, everything is going well. However, I have a problem. I want to make sure that when the user his image is uploaded to the remote FTP…
user11716766
1
vote
1 answer

DotNet app receives Gateway 502 (proxy server error) - after posting large file to web server

I've seen questions like this asked in a few places but I haven't seen an answer which helps me. Hoping that you can assist! Situation: Uploading files using a .NET workstation client to an Apache web server backed by Tomcat. Small files work…
klinius
  • 21
  • 5
1
vote
1 answer

HTTP file upload: Can I rely on the browser always sending a file name?

According to this great article about HTTP uploads by Scott Hanselman, the browser typically sends a file name with the file's contents. Can I rely on the file name always being transmitted or do I have to give the user the option to enter a name if…
usr
  • 168,620
  • 35
  • 240
  • 369
1
2