<div dir="ltr"><div>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.<br><br></div>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.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 19, 2017 at 7:35 PM, Ambriesh Dwivedi <span dir="ltr"><<a href="mailto:adwivedi@mcfina.com" target="_blank">adwivedi@mcfina.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div class="m_1044413635763566512WordSection1">
<p class="MsoNormal">Hi Team,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am using below interchange syntax for file upload.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>In upload_a_video.html file =><u></u><u></u></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                <form action="[company-url] method="post" enctype="multipart/form-data"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                              <wbr>  <input type="file" name="mediafilename" value="mediafilevalue" id="mediafileid" accept=".mp4|.wmv|.mkv|.gif|.<wbr>mov|video/*|audio/*"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                              <wbr>  <INPUT TYPE=hidden NAME=mv_nextpage VALUE=display_a_video.html><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                              <wbr>  <input type="submit" value="Upload & Test!"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                </form><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000"><br>FileName: [value-extended name=mediafilename]<br><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                [tmp interpolate=1 name=not_null_file_name]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                              <wbr>  [value-extended  name=mediafilename test=isfile]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                [/tmp]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                [value-extended Yes="File Saved" No="File NOT saved" name=mediafilename<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                    outfile="<b>xdir/[value-extended name=mediafilename]</b>"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">                ]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">               
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">  <br><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">  [if scratch not_null_file_name]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">    Good file name <br><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">  [else]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">    Null file name<br><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">  [/else]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000">  [/if]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b>In display_a_video.html file =><u></u><u></u></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000"><video class="p-video" type="video/mp4" width="700" height="450" src = "../catalogs/core/<b>xdir</b>/<b>[<wbr>scratch mediafilename]"
</b>controls><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000"></video><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal">I am able to save files in the application server<span style="color:#1f497d">
</span>itself  at location ‘catalogs/core’ successfully. <u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#c00000"><u></u> <u></u></span></p>
<p class="MsoNormal">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’<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What I am missing here?<u></u><u></u></p>
<p class="MsoNormal">Does interchange has the capability to upload files on a different remote server other than the application server?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">It will be really great to get some help on this issue.<span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Ambriesh Dwivedi<u></u><u></u></p>
<p class="MsoNormal"><a href="mailto:adwivedi@mcfina.com" target="_blank">adwivedi@mcfina.com</a><u></u><u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
interchange-users mailing list<br>
<a href="mailto:interchange-users@icdevgroup.org">interchange-users@icdevgroup.<wbr>org</a><br>
<a href="http://www.icdevgroup.org/mailman/listinfo/interchange-users" rel="noreferrer" target="_blank">http://www.icdevgroup.org/<wbr>mailman/listinfo/interchange-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Just because something is obviously happening doesn't mean something<br>obvious is happening. --Larry Wall<br></div></div></div>
</div>