Welcome Guest, Not a member yet? Register   Sign In
SWFUpload - doesn't seem to be saving to "upload_tmp_dir" directory
#1

[eluser]taewoo[/eluser]
I am using latest SWFUpload on CI 1.7.1.

Recently, I changed to latest version of WAMP server.
SWFUpload was working fine and dandy before but now it's giving me a problem, mainly this error (visible via SWFUpload debug console):

Code:
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Data: Array
SWF DEBUG: (
SWF DEBUG:     [Filedata] => Array
SWF DEBUG:         (
SWF DEBUG:             [name] => 1.csv
SWF DEBUG:             [type] => application/octet-stream
SWF DEBUG:             [tmp_name] => C:\wamp\tmp\php176.tmp
SWF DEBUG:             [error] => 0
SWF DEBUG:             [size] => 4
SWF DEBUG:         )
SWF DEBUG:
SWF DEBUG: )
SWF DEBUG: {"error":"<p>You did not select a file to upload.<\/p>"}
SWF DEBUG: Event: uploadComplete : Upload cycle complete.

Any thoughts on this?

PS: I am able to upload fine if I use straight PHP method.
#2

[eluser]taewoo[/eluser]
It was a MIME issue. Bleh.

If anyone is wondering, SWFUpload always returns "application/octet-stream" as MIME type: SWFUpload forum thread

When you call "do_upload()", make sure you call:

Code:
$this->upload->do_upload('Filedata')




Theme © iAndrew 2016 - Forum software by © MyBB