Alpha Video Training
Results 1 to 7 of 7

Thread: File Upload Action Javascript Problem

  1. #1
    "Certified" Alphaholic mikeallenbrown's Avatar
    Real Name
    Mike Brown
    Join Date
    Nov 2009
    Location
    United States
    Posts
    1,746

    Default File Upload Action Javascript Problem

    Web app running 5667-5254

    The file I upload disappears after I make a change to the record.

    Typed 'Test' then saved. Then I uploaded a small PDF. It saves successfully...
    Ashampoo_Snap_Tuesday, June 11, 2019_10h58m59s_012_.png

    Ashampoo_Snap_Tuesday, June 11, 2019_10h59m06s_013_.png


    Add '123' then save again. My upload disappears!...
    Ashampoo_Snap_Tuesday, June 11, 2019_10h59m24s_014_.png

    Ashampoo_Snap_Tuesday, June 11, 2019_10h59m32s_015_.png

    Here are my testing components. This seems like a serious bug...unless I'm missing something?

    File_Upload_Test.a5wcmp

    SQL Create code...
    Code:
    USE [TYPE_YOUR_DB_NAME_HERE]
    GO
    
    /****** Object:  Table [dbo].[File_Upload_Test]    Script Date: 6/11/2019 11:06:38 AM ******/
    SET ANSI_NULLS ON
    GO
    
    SET QUOTED_IDENTIFIER ON
    GO
    
    CREATE TABLE [dbo].[File_Upload_Test](
    	[ID] [INT] IDENTITY(101,1) NOT NULL,
    	[Some_Text] [NVARCHAR](50) NULL,
    	[FORM] [VARBINARY](MAX) NULL,
    	[FORMNAME] [NCHAR](60) NULL,
     CONSTRAINT [PK_File_Upload_Test] PRIMARY KEY CLUSTERED 
    (
    	[ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    Last edited by mikeallenbrown; 06-11-2019 at 05:04 PM. Reason: Anyone ever really read this part??
    Mike Brown - Contact Me
    Programmatic Technologies, LLC
    Programmatic-Technologies.com
    Independent Developer & Consultant

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,535

    Default Re: File Upload Action Javascript Problem

    This is a bug... and it's been there for a long time. The build I have that this is working is 5221, July 2018. I'd guess it's been broken since November 2018 when there were 3 "official" releases that month.

  3. #3
    "Certified" Alphaholic mikeallenbrown's Avatar
    Real Name
    Mike Brown
    Join Date
    Nov 2009
    Location
    United States
    Posts
    1,746

    Default Re: File Upload Action Javascript Problem

    Quote Originally Posted by Davidk View Post
    This is a bug... and it's been there for a long time. The build I have that this is working is 5221, July 2018. I'd guess it's been broken since November 2018 when there were 3 "official" releases that month.
    ugh...I suspected as much. An app I maintain uses this extensively. Wasn't until a client discovered their PDF's wouldn't download that I the discovered this. Who knows how many hundreds (or more) documents are now gone. Makes me want to scream. I can't freaking test everything in an app for every new release.

    I'll report this to Alpha and I'll post their response here.
    Mike Brown - Contact Me
    Programmatic Technologies, LLC
    Programmatic-Technologies.com
    Independent Developer & Consultant

  4. #4
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,535

    Default Re: File Upload Action Javascript Problem

    I'm sorry to say that's the same situation I'm in. Alpha breaks so much and so often that I must test every aspect of an app when moving to a new release. Alpha has shown they won't test their work. It's up to us to do that.

  5. #5
    "Certified" Alphaholic iRadiate's Avatar
    Real Name
    Stephen
    Join Date
    Jan 2011
    Location
    London, ON
    Posts
    1,559

    Default Re: File Upload Action Javascript Problem

    It's really bad actually. You guys aren't the only ones frustrated.
    Alpha Anywhere v12.4.5.5.0 Build 5667-5254 IIS v8.5 on Windows Server 2012 in Hyper-V

  6. #6
    "Certified" Alphaholic mikeallenbrown's Avatar
    Real Name
    Mike Brown
    Join Date
    Nov 2009
    Location
    United States
    Posts
    1,746

    Default Re: File Upload Action Javascript Problem

    Selwyn's response and workaround:

    I was able to duplicate the problem and we are working on a fix.
    in the meantime, there is a work around.
    after you upload and image and then save the data execute this javascript to clear out the file upload control

    $('DLG1.V.R1.FILEUPLOAD_1').value = ''



    Update: It's now fixed. I presume it'll be in the next prerelease.
    Mike Brown - Contact Me
    Programmatic Technologies, LLC
    Programmatic-Technologies.com
    Independent Developer & Consultant

  7. #7
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,535

    Default Re: File Upload Action Javascript Problem

    That work around does work. Use a placeholder, just to be safe...

    Code:
    $('{dialog.ComponentName}.V.R1.FILEUPLOAD_1').value = '';

Similar Threads

  1. Amazon S3 upload Action Javascript
    By jorgenho in forum Application Server Version 11 - Web/Browser Applications
    Replies: 0
    Last Post: 03-17-2015, 09:45 AM
  2. File Upload Action Script Not Honoring File Type Restrictions
    By iRadiate in forum Mobile & Browser Applications
    Replies: 6
    Last Post: 07-11-2013, 11:53 AM
  3. Getting the folder location on file upload and file download javascript
    By acceptthis in forum Application Server Version 11 - Web/Browser Applications
    Replies: 3
    Last Post: 03-09-2013, 06:00 PM
  4. FILE UPLOAD action - sending to a different server/folder
    By Editor in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 09-26-2011, 08:29 AM
  5. File Upload - User Defined Action
    By omagarc in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 10-07-2010, 02:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •