i want to store the uploaded images in a folder in my Local machine.
i defined uploadURL as,
var uploadURL ="../../../sample-code/uploader/pop-up/tempImages";
i got the following error.
An error occurred attempting to read the file from disk. The file was not uploaded. (Error code: Error #2038)
how can I test in my local system? And in real time server also?
Can u tell?
Local
Error 2038 is pretty generic and the description could mean different things depending on the context. It could be you don't have permissions to the file, the file is on a network drive, or some Vista security "feature".
When you say local do you mean that you are running IIS or Apache (or some other) locally and access your page from http://localhost or are you loading a file into the browser (file:///)?
Have you tried absolute paths rather than relative paths and is your uploadURL relative to the SWF file instead of the page?
issue with MultipleFile upload
1) I changed my code like as follows:
var uploadURL ="../../../fluid-components/swfupload/upload.php";
var flashURL = "../../../fluid-components/swfupload/swfupload_f9.swf";
2) and in my upload.php
$save_path = "/temp/"; // This is my folder to save the uploaded images
3) I am running project in dotnet environment as follows:
http://localhost:1065/SelectAlStyle/sample-code/uploader/pop-up/Multiple...
4) What is meant by absolute URL & Relative URL?
5) Can u tell me how to save uploaded images in a folder in Both local and Server.
URLS
You might have to try:
upload_url: "http://localhost:1065/SelectAlStyle/fluid-components/swfupload.php"
That is an absolute path. It tells you what the path regardless of what the current path is.
A relative path is what you are using (how to get to the path from where you are now). Your upload_url should be relative to the swf file. So in this case it looks like your upload_url should be "upload.php" since the swf and the upload.php are in the same directory.
Saving the file is all done in the upload.php. You can't upload to 2 places at once.