Re: Not able to upload file to a remote server using interchange running application
Mike Heins <[email protected]> Tue, 19 Sep 2017 21:05:35 +0200
| Newsgroups | gmane.comp.web.interchange.users |
|---|---|
| Message-ID | <CACcURn9Teau0XP=-Yo3osyd1wc6MYR=AsuV-mQtVPsdJ8VPZsg@mail.gmail.com> |
How big are these files? WMV files are often large, and the dual network hops along with a large file may mean that the web server times out before the file is completely transferred. You might consider uploading to a local directory, then setting up a cron job to rsync the files to their ultimate destination. Or you could have Interchange gate to a separate upload program. On Tue, Sep 19, 2017 at 7:35 PM, Ambriesh Dwivedi <[email protected]> wrote: > Hi Team, > > > > I am facing issue while trying to upload text/image/video files from our > application(which is running on interchange) to a remote server(a different > server to store uploaded user videos and then later access them for > display) that files are not getting saved on remote server. > > > > I am using below interchange syntax for file upload. > > > > *In upload_a_video.html file =>* > > <form action="[company-url] method="post" > enctype="multipart/form-data"> > > <input type="file" name="mediafilename" > value="mediafilevalue" id="mediafileid" accept=".mp4|.wmv|.mkv|.gif|. > mov|video/*|audio/*"> > > <INPUT TYPE=hidden NAME=mv_nextpage > VALUE=display_a_video.html> > > <input type="submit" value="Upload & > Test!"> > > </form> > > > > <br>FileName: [value-extended name=mediafilename]<br> > > > > [tmp interpolate=1 name=not_null_file_name] > > [value-extended name=mediafilename > test=isfile] > > [/tmp] > > > > [value-extended Yes="File Saved" No="File NOT saved" > name=mediafilename > > outfile="*xdir/[value-extended name=mediafilename]*" > > ] > > > > <br> > > [if scratch not_null_file_name] > > Good file name <br> > > [else] > > Null file name<br> > > [/else] > > [/if] > > > > *In display_a_video.html file =>* > > <video class="p-video" type="video/mp4" width="700" height="450" src = > "../catalogs/core/*xdir*/*[scratch mediafilename]" *controls> > > </video> > > > > I am able to save files in the application server itself at location > ‘catalogs/core’ successfully. > > > > I have mounted the volume ‘xdir’ of remote server under ‘catalogs/core’ of > application server so that application can save files under > ‘catalogs/core/xdir’, however interchange is only able to create a blank > file at the remote server directory ‘xdir’ > > > > What I am missing here? > > Does interchange has the capability to upload files on a different remote > server other than the application server? > > > > It will be really great to get some help on this issue. > > Thanks, > > Ambriesh Dwivedi > > [email protected] > > _______________________________________________ > interchange-users mailing list > [email protected] > http://www.icdevgroup.org/mailman/listinfo/interchange-users > > -- Just because something is obviously happening doesn't mean something obvious is happening. --Larry Wall _______________________________________________ interchange-users mailing list [email protected] http://www.icdevgroup.org/mailman/listinfo/interchange-users